Giter VIP home page Giter VIP logo

vscode-c-cpp-config's Introduction

VSCode C/C++ Config

Creates config files for simple C/C++ projects.

If the standard (non-minimal) command is used, the following files will be created in the local .vscode folder:

  • settings.json: Best default settings for C/C++, CMake etc. extensions
  • c_cpp_properties.json: Best default settings for the compiler
  • tasks.json: Tasks to compile single C/C++ files or all C/C++ files in a folder
  • launch.json: Debug configs to debug C/C++ programs that were compiled by the tasks
  • Makefile: Makefile targets that are used in launch.json and tasks.json

if the minimal command is used, the following files will be created in the local .vscode folder:

  • settings.json: Best default settings for C/C++, CMake etc. extensions
  • c_cpp_properties.json: Best default settings for the compiler

Following files will be created in the root directory for all commands:

  • .clang-format: Configuration for the formatting tool
  • .clang-tidy: Configuration for the static linting tool
  • .editorconfig: Standard editor settings (line-feed, insert new-line, etc.)
  • .gitattributes: Gives attributes to pathnames
  • .gitingore: Specifies intentionally untracked files to ignore

Note: If one of these files already exists, they won't be overridden.

Software Requirements

  • ๐Ÿ”ง Windows:
    • Alternative 1: gcc/g++/gdb/make with Cygwin
    • Alternative 2: clang/clang++/ldb/make with LLVM
  • ๐Ÿ”ง Linux:
    • Alternative 1: gcc/g++/gdb/make
    • Alternative 2: clang/clang++/ldb/make
  • ๐Ÿ”ง MacOS:
    • Alternative 1: clang/clang++/lldb/make
    • Alternative 2: gcc/g++/gdb/make

How to use

Just run the command:

  • 'Generate C Config Files'
  • 'Generate C++ Config Files'
  • 'Generate C Config Files Minimal'
  • 'Generate C++ Config Files Minimal'

in VSCode's command palette (F1).

Important Notes

The generated tasks won't work whenever there are whitespaces or non-ASCII characters in the file paths and directory names.

Release Notes

Refer to the CHANGELOG.

License

Copyright (C) 2021 Jan Schaffranek.
Licensed under the MIT License.

vscode-c-cpp-config's People

Contributors

franneck94 avatar

Forkers

cengiztiryaki

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.