Skip to content

What do you think about Visual Studio Marketplace? We are looking for feedback from developers like you! Take the survey

| Marketplace
Sign in
Visual Studio Code>Other>Snippets in MarkdownNew to Visual Studio Code? Get it now.

Snippets in Markdown

Alexander

|
68 installs
| (1) | Free
Keep snippets in Markdown file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Use markdown file and Fenced Code Blocks to store all snippets. Example:

```javascript,typescript prefix1,prefix2 name description
console.log($0);
```
demo_of_markdown_file

Use spaces for indentation in the snippets.md file (not tabs).

Snippet parts can be omitted by using underscore sign _.

There is autocomplete for variables such as TM_SELECTED_TEXT, but it doesn't auto show inside the code block (need to trigger suggest editor.action.triggerSuggest Ctrl+Space).

Commands (1)

Command Description
snippetsInMarkdown.openSnippetsFile Snippets In Markdown: Open Global Snippets File

Colors (1)

Can be specified in settings.json (workbench.colorCustomizations section)

Color Dark Light HC Description
snippetsInMarkdown.snippetVariableForeground #00bd94 #00bd94 #00bd94 Variable highlights in snippets.md file, such as $TM_SELECTED_TEXT.
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft