This is a simple extension for competitive programmers who enjoy coding using C++ and VS code.
The aim of this extension is reducing your code and debugging period and thus increasing your pace in solving problems.
If it helps please leave a 🌟
Open a file with .cpp
extension and type "cppcode" or even shorter and type "enter" or "tab".
Node :- You can always edit the snippet according to your requirements and the edited snippet will also start with the same name "cppcode"
-
Code snippet in equipped with basic structure of cpp code you would like to use while solving a problem in a competitve programming contest to make your coding fast and efficient.
-
All the debugging flags useful for a competitve programmer is also added in a comment in the code snippet. So no need to waste time on debugging silly mistakes in your code (You can directly use the command provided there to compile your cpp file and avoid silly errors, mainly runtime/syntactical errors). :p
-
For more information on the provided g++ flags, please have a look here
No additonal requirements apart from Visual Studio Code. Click Here to download.
- To start using your extension with Visual Studio Code first clone the repo with the command:
git clone https://github.com/Ajitesh13/cppcode.git
- copy it into the
<user home>/.vscode/extensions
folder and restart Code (For Linux and Mac users, for windows search for.vscode/extensions
and paste it there).
- For linux user, if cloned into
home
directory use the command to copy the cloned repo:
cp -r cppcode .vscode/extensions
This extension is applied to publish on VS Code Extension Marketplace. So very soon you are going to find this extension there and can directly download it.
- You can always edit this extension according to your convinience and needs. Follow the following steps after installing the extension:
- go to /.vscode/extensions/cppcode/snippets/snippets.json
- It contains the required code snippet in json format, make all the editing in that json file and restart vs code to see the changes
- Feel free to give a PR to improve this project, have a look over CONTRIBUTING.md for understanding this project anatomy.
- Open a issue here if you could discover a problem in the extension or for any new idea.
Permissions of this strong copyleft license are conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights. Get more information here
Happy Coding!!!