Snippets Viewer ⇥ was created to simplify navigation and preview of code snippets from built-in languages and extension snippets.
Please consider becoming a Fan and sponsoring our dev efforts on this and other Random Fractals, Inc. code and data viz extensions if you find them useful, educational, or enhancing your daily dataViz/dev code workflows:
☕️ https://ko-fi.com/dataPixy 💖 https://github.com/sponsors/RandomFractals
Snippets Viewer ⇥ extension Settings, Commands, and VSCode Views:
Install Snippets Viewer ⇥ via VSCode Extensions tab (Ctrl+Shift+X
) by searching for snippets viewer
|| via VSCode marketplace search results.
Create User or Workspace Settings in VSCode to change default Snippets Viewer ⇥ extension Settings:
Note: All Snippets Viewer ⎇ Settings start with snippets.viewer.
prefix.
Example of .vscode/settings.json
you can use to specify Snippets Viewer ⎇ Settings in open project Workspace to overwrite global User settings and toggle Snippets tree view display options listed below:
{
// Local Snippets viewer settings
"snippets.viewer.sortSnippetsByName": false,
"snippets.viewer.combineLanguageSnippets": true,
"snippets.viewer.expandSnippetFiles": true
}
Setting Name | Type | Default Value | Description |
---|---|---|---|
combineLanguageSnippets |
boolean | false |
Combine language snippets in the Snippets tree view. |
expandSnippetFiles |
boolean | false |
Expand snippet files on snippet language tree node expand in the Snippets tree view. |
focusOnActiveEditorSnippets |
boolean | false |
Focus on active editor snippets when Snippets tree view is visible. |
showBuiltInExtensionSnippets |
boolean | true |
Show built-in language extension snippets in the Snippets tree view. |
showOnlyActiveEditorLanguageSnippets |
boolean | false |
Show only active editor language snippets in the Snippets tree view. |
skipLanguageSnippets |
string | Comma delimited list of languages to skip snippets display in the Snippets tree view. | |
sortSnippetsByName |
boolean | false |
Sort loaded snippets by name in Snippets tree view. |
Use the following commands to build this Snippets Viewer VSCcode extension locally for debugging and submitting pull requests (PRs):
$ git clone https://github.com/RandomFractals/vscode-snippets-viewer
$ cd vscode-snippets-viewer
$ npm install
$ code .
Watch for changes:
$ npm run-script watch
Press F5
in VSCode to start Snippets Viewer extension debug session.
Any & all test, code || feedback contributions are welcome.
Open an issue || create a pull request to make this Snippets Viewer VSCode extension work better for all. 🤗