Coding Made Easy is an extension which helps in completion of your large custom designed functions, classes and templates by just typing a small keyword and letting the VS Code suggestion do the rest of the work.
- Install the Extension from the extensions area.
- After the installation of the extension, press
Ctrl + Shift + Pand click onCreate Or Edit Snippet. - It will first ask you to choose your preferred programming language.
- After that it asks for the name of the keyword.
- After you hit enter, a page opens up where you can type your code snippet and click on
Save Changesin the pop up which shows on the bottom right corner. - If you enter an existing keyword name, i.e. the one which you have already created, a file opens up with the pre-written snippet which can be edited and changes can be saved.
- After installation, press
Ctrl + Shift + P. - Click on
Create Or Edit Snippet. - It asks you for a language. Let us select cpp for example.
- Then it will ask for a keyword. Let us enter 'dsu' for example.
- A file opens up where we will type the DSU code and hit on
Save Changesshowing up on the bottom right corner. - Your code is saved now as a snippet and can be used anytime when you open VS code.
- If you want to make edits to the snippet, follow the same process, type the same keyword, update the file and hit on
Save Changes.
- Please make sure that your keywords do not contain any spaces.
- After saving changes in the snippet, you can close the window. It will ask you to save your code, click on
Don't Save.
Click for a video demo of the extension