Code Snippets are super useful, and create your custom Code Snippets is super easy in Visual Studio Code. The official Documentation (see references) explains how to create snippets, with the full details of the JSON file, sections, contents and more. However there are some extra tips on top of this information that are super useful.
This is an amazing Visual Studio Code Extension. Just search for [snippet creator] on the Extension and install the extension.
Once the extension is installed, the way to use this is super simple.
- Select some code
- CTRL + SHIFT + P, and type [create snippet]
- Follow the steps, define snippet prefix, and optionally description
- That’s it!
I created a custom snippet with the prefix [cameraCalcFPS] and now the snippet is available for any python file !
In order to check all the custom code snippets
- CTRL + SHIFT + P
Ver la entrada original 74 palabras más