Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Snippets ViewerNew to Visual Studio Code? Get it now.
Snippets Viewer

Snippets Viewer

shilim

|
411 installs
| (0) | Free
Extension snippets and custom snippets viewer
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-snippets-viewer

Snippets Viewer for Visual Studio Code Visual Studio Marketplace

Auto Loading Snippets From Expansion

You can easily view all extended code snippets from the sidebar

GroupByPlugins

list1

GroupByLanguage

list2

Usage

Insert Snippets

Click code snippet

Change ShowType

Update User Settings to config Click the 'showAll'|'followEditor' button in the upper right corner

if 'followEditor' is selected, only the snippet for the language corresponding to the activated editor will be displayed followEditorDemo

Change GroupByType

Update User Settings to config Click the 'Group By xxx' button in the upper right corner

Refresh List

Click the refresh button in the upper right corner

Disable/Enable Custom Snippets

Only support for custom snippets

disableSnippets

Options

The following Visual Studio Code setting is available for the Snippets-Viewer. This can be set in User Settings or Workspace Settings.

{
    // custom absolute snippet folder url,it will query the configuration file you configured
    "SnippetViewer.customUrl":"E:\\snippets",
    // custom relative snippet folder url,it will query the configuration file in the currently open folder
    "SnippetViewer.relativeCustomUrl":".vscode",
    // show type default:'showAll'
    "SnippetViewer.showType":"showAll"
    // groupByType default:'plugins'
    "SnippetViewer.groupByType":"plugins"
    // control the visibility of the 'targetToFile' button default:false
    "SnippetViewer.showTargetCodeBtn":false
}

Custom Snippets

Snippets code folder template. You can refer to the snippets folder

snippets                          
├─ custom    
│  └─ vue.json
│  └─ javacript.json                 
└─ config.json               

config.json template

[
  {
    "name": "custom",
    "children": [
      {
        "name": "vue",
        "children": "custom/vue.json"
      }
    ]
  }
]

Target To Snippets File

When SnippetViewer.showTargetCodeBtn is True, you can get a button to open the snippets file.

targetToFile

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