简体   繁体   中英

Visual Studio Code Snippets

I am just wondering how do I create my own custom snippets in visual studio code to make my workflow more productive. This one is specifically for linking my bootstrap at the start of each HTML website.

A simple method to generate your own snippets is to use an online generator

After you created your snippet:

  1. Download/install/open VSCode.
  2. Press Ctrl+Shift+p or F1 to open the search bar.
  3. Type Preferences: Configure User Snippets .
  4. Open the language_of_your_choice.json file.
  5. Copy/paste the full json code that you made in the online generator into your VSCode language_of_your_choice.json file.
  6. Save and close. You're done!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM