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.
- ๐ง 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
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).
The generated tasks won't work whenever there are whitespaces or non-ASCII characters in the file paths and directory names.
Refer to the CHANGELOG.
Copyright (C) 2021 Jan Schaffranek.
Licensed under the MIT License.