- Project structure: Common folders like src, include and bin
- Makefile: A makefile already set up to build and run your project
- VSCode tasks: Configurations for building and running your project
- VSCode debug configuration: Debugging already setup for Visual Studio Debugger, GDB and LLDB
- Add new classes easily with the `Create new class` command
Creating class will create the appropiate files using one of the templates avaliable here
- Install the compiler you want to use, look the Requirements section below
- Open a new folder in VSCode
- Open the command palette (F1) and search for
easy cpp
, then press theCreate new C++ project
option - Enjoy programming! Now you can compile your code using the
Build & Run
button in the status bar at the bottom or F7, you can also set breakpoints and use the debugger!
- You must have MSVC or GCC installed:
- MSVC can be installed using Build Tools for Visual Studio 2017 from here
- GCC Windows 10: Install GCC and Make on Windows through WSL: Windows Subsystem for Linux setup
- GCC Windows 8.1 or lower: Install GCC and Make using Cygwin or MinGW
- Install GCC, Make and GDB using the package manager of your distribution, these are some of them:
- Debian/Ubuntu/Mint:
sudo apt install g++ make gdb
- Fedora:
sudo dnf install gcc-c++ make gdb
- Arch Linux:
sudo pacman -S gcc make gdb
- Debian/Ubuntu/Mint:
- GCC: Check out Brew
- Clang:
- Open a Terminal
- Run the command
xcode-select --install
- A dialog will appear telling you that it requires the command line developer tools, and asks if you would like to install them. Click on the "Install" button
- You should install C/C++ VSCode extension for the best experience, avaliable here
- Alternatively you can run this command from the command palette:
ext install ms-vscode.cpptools
Changed custom templates folder location, now it is safe to save templates and they won't be removed upon extension updates
Added support for Visual Studio Build Tools 2019
Added "openFiles" property to JSON. It allows the user to set multiple files to open automatically on project creation
Fix Easy C++ placeholder not being created when using a custom template
New files.json format, now each template can have different directories and blank files created
Added "Convert this folder to an Easy C++ Project" command
Load extension when the file .vscode/.easycpp is present, avoiding loading it when there is a tasks.json but it is not an Easy C++ project
Added support for offline templates if there is no Internet connection avaliable
Added support for custom templates
Added "Open Custom Templates Directory" command
Added Create getter
, Create setter
and Create getter and setter
commands. This is in very early stages, so bugs will happen. Please report any bugs to the issues page on GitHub :)