Skip to content
0:00 / 0:00

#vscode#codesnippets

How To Make Code Snippet In VS CODE

Subhojit Ghosh

5 subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.

Beginner. No background in the topic needed.

3.2K views6 years ago1 recommendation

Tools and practiceVim, Emacs and editors

A quick tutorial on how to configure and use custom user code snippets in Visual Studio Code.

VS CODE is a very popular Code Editor developed by Microsoft. It is free to use. The best part of vs code is, you can make your own code snippet. In this video, we will see how to do it. CTRL + SHIFT + P Instead of CTRL + P at . Sorry for that mistake😢

Why it's here

1 person recommends this

What people say. Recommended as a quick and short tutorial for creating custom code snippets in VS Code.

vinodon Stack Overflow • Recommends

On “How to add custom code snippets in VSCode?”

You can check out this video for a quick short tutorial link to this video Go to File --> Preferences --> User Snippets . Select your preferred language. Now type the following code to make a for loop snippet: "Create for loop":{ "prefix": "for", "body":[ "for(int i = 0; i < 10; i++)", "{", " //code goes here", "}" ], "description": "Creates a for loop" } You are done. Type "for" in the editor and use the first prediction. SHORTCUT install snippet-creator extension (now deprecated). Highlight the code that you need to make snippet. press ctrl + shift + P and type "Create snippet" on the command palette and press ENTER. select language for which you want to create snippet(eg:-CP…

vinodon Stack Overflow • Recommends

On “What&#39;s The Best Way To Write Multi-Line Code Snippets In VS-Code?”

You can check out this video for a quick short tutorial link to this video Go to File --> Preferences --> User Snippets . Select your preferred language. Now type the following code to make a for loop snippet: "Create for loop":{ "prefix": "for", "body":[ "for(int i = 0; i < 10; i++)", "{", " //code goes here", "}" ], "description": "Creates a for loop" } You are done. Type "for" in the editor and use the first prediction. SHORTCUT-- install Snippet-creator extension. Highlight the code that you need to make snippet. press ctrl + shift + P and type "Create snippet" on the command palette and press ENTER. select language for which you want to create snippet(eg:-CPP), then type…