Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>C/C++ Project CreatorNew to Visual Studio Code? Get it now.
C/C++ Project Creator

C/C++ Project Creator

Alec269

|
525 installs
| (0) | Free
Generate Modern C and C++ project templates with CMake, VCpkg, and VSCode configurations
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

C/C++ Project Generator

A VS Code extension to quickly generate starter C or C++ projects using CMake.
It sets up a standard project structure with src/, include/, .vscode/, deps/, configs, and helpful defaults.

Features

  • Generate new C or C++ projects from scratch
  • Preconfigured CMake setup
  • Example main.c or main.cpp
  • .editorconfig, .clang-format, .gitignore, .gitattributes included
  • vcpkg integration ready

Usage

  1. Open an empty folder in VS Code
  2. Press Ctrl+Shift+P and run "C/C++ Project Generator: Create C Project" or "Create C++ Project"
  3. Enter your project name
  4. Edit the CMakePresets.json file for your compiler setup
  5. Start coding

Requirements

  • CMake 4.0+
  • A C or C++ compiler ( MSVC, Clang, GCC etc. )
  • (Optional) vcpkg for dependency management

Notice

  • Editing the CMakeLists.txt might be necessary
  • The user must Edit the CMakePresets.json for proper setup

Project Structure

my-project/
   ├── .vscode/            # VSCode configuration
   ├── src/                # Source files
   ├── include/            # Header files
   ├── deps/               # manually collected pkgs
   ├── docs/               # Project documentation
   ├── CMakeLists.txt      # CMake configuration
   ├── CMakePresets.json   # CMake Presets
   ├── vcpkg.json          # vcpkg dependencies
   ├── .clang-format       # Code formatting rules
   ├── .editorconfig       # Editor configuration
   ├── .gitignore          # Git ignore rules
   ├── .gitattributes      # Git attributes
   ├── ChangeLog.md        # Change log
   └── README.md 

Release Notes

1.0.0

  • Initial release

1.1.0

  • Minor Update:
    • Moved to CMake v4
    • Changed Formatting
    • Improved build and source files

1.1.1

  • Patch Update
    • fixed optional vcpkg.cmake path in CMakeLists.txt
    • Added the latest vcpkg commit SHA as builtin baseline (will not change unless necessary)

[1.2.0] - 2026-04-16

  • See ChangeLog

From now on Changes shall only be recorded in the ChangeLog of this extension.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft