This project provides .vscode configuration for developing C++ executable programs using CMake and MinGW within the Visual Studio Code environment.
- CMake-based build system: Manage and build C++ projects easily and cross-platform using CMake.
- MinGW support: Easily create C++ executable files in Windows environments with MinGW.
- Optimized for VS Code: Includes settings under the
.vscodedirectory to enable convenient development features like building, debugging, and code autocompletion out of the box.
-
Clone the project
git clone https://github.com/JayTwoLab/vscode-cmake-cpp-mingw-exe.git
-
Install required tools
- Visual Studio Code
- CMake
- MinGW-w64
- VS Code Extensions: CMake Tools, C/C++
-
Build and Run
- Open the folder in VS Code (
File>Open Folder) - Use CMake: Build from the status bar or Command Palette
- After building, you can run and test your application
- Open the folder in VS Code (
.vscode/ # VS Code specific configuration files
CMakeLists.txt # CMake project configuration file
src/ # C++ source code directory
README.md # This documentation
This project is licensed under the MIT License.