Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Add-To-SnippetNew to Visual Studio Code? Get it now.
Add-To-Snippet

Add-To-Snippet

50 Percent

|
487 installs
| (1) | Free
Add selected code to current language's snippet.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Add-To-Snippet README

Quick append a piece of code to language's snippet

Features

  • auto-detect language
  • opearte inplace
  • will not break previous config file(such as lost comments)

How to Use this

After you select the code you want to add, you can either use:

  • command Add To Snippet (Ctrl + Shift + P -> Add To Snippet)
  • or select target code and right-click,you will see Add Selected To Snippet
  • ~alt+i shortcut for windows or cmd+i for mac~

Known Issues

need a deep test

Release Notes

changelog

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft