C C++ ToolkitA VSCode extension to help create, build, run, debug and test C and C++ projects using CMake.
Features
Important NoteIf you find a bug or have a suggestion, please open a new issue and help me make this extension better. :) Status Bar ButtonsSeven status bar buttons have been implemented to:
Project GenerationA new C or C++ project can be created with necessary biolerplate code using
the It would then ask the user to select a base folder in which the project folder is to be placed. When a base folder is selected, the user would be asked to input the project name. Project FilesThe new project folder would contain these pre-configured items:
The user can then start adding their own libraries or "components" via the component generation feature. Component GenerationA new component can be created with some biolerplate code by using the
Mocked Components"Mocked" means a mock file would be created inside a "mock" folder. If
the component name is Tested Components"Tested" means test header and source files would be created inside
a "test" folder. If the component name is Component FilesA component would have the following files
It would also modify the root CMakeLists.txt to add the new component. Naturally
if the project is C++ instead of C, the Missing Build ToolsThe extension checks if the required build tools are installed by trying to
find them in the Once installation of the missing tools is complete, it asks the user if VSCode can be restarted. The build tools are installed via these package managers:
Since Windows does not come pre-installed with Scoop, the ability to install Scoop itself has also been added. Once the tools are installed, the user is informed, and asked to close and re-open VS Code. The command Refreshing Project ConfigurationTo refresh the project configurations in the SnippetsThe extension adds useful snippets for creating functions and attributes.
ExtrasDo you want to do learn how to manually create new projects, manually compile your code and install build tools? Check out my blog on Medium. This extension more or less automates the same things mentioned in this blog. Setup Guide for C/C++ Programming on VSCode Also check out the website for this extension. |