Stop writing this code again & again | Make boilerplate in VS Code for C

What is boilerplate?


In VS Code there is one option called user snippet. In it, we can declare a code that that is being repeatedly used by us like basic structure of C program.
Afterwards, when we call it by using defined keyword or say Prefix. The intellisence of VS Code will detect and write that pre-decleared code for us.

Advantages:

  • Saves time
  • Reduce error
Boilerplate Code Link: Click here

How to make Boilerplate for C in VS Code

Step 1: In bottom left you can see gear like icon ⚙️ click on it.

Step 2: Click on User Snippet.

Step 3: Select C.json

Step 4: Copy and paste the given code in it and save the file by ctrl + s.

Hurray your boilerplate is ready to use!
Just try to type boilerplate in C program file you will see a suggestion just click on it and your code is automatically completed.

Popular posts from this blog

How to install C Compiler and make VS Code ready for Getting Started with C

Data Structure: Basic Introduction