Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Custom SnippetsNew to Visual Studio Code? Get it now.
Custom Snippets

Custom Snippets

Aly Yasser Pranajaya

|
15,057 installs
| (1) | Free
Code snippet for creating your own snippets.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Custom Snippets

Custom Snippets is code snippet for creating your own snippets.

Demo

Custom Snippets: Single Line

Custom Snippets: Single-line

Custom Snippets: Multiple Lines

Custom Snippets: Multi-line

Custom Snippets: Multiple Lines on Body

Custom Snippets: Multiple-line body

Installation

  1. Visit VSCode Market: Custom Snippets.

    OR

  2. By VSCode

    • Open VSCode

    • Launch VS Code Quick Open (press Ctrl+P)

    • Paste the following command

      ext install vscode-custom-snippets
      
    • Press Enter to search the extension

    • Select Custom Snippets

    • Install

Tip: If you open README on GitHub, you can install Clipboardy, a Chrome extension, for copying the command listed above to clipboard. For more information, please visit Clipboardy Chrome Extension Homepage.

Usage

Type snippet prefix, and IntelliSense will show the snippet. If IntelliSense doesn't show the snippet, press Ctrl+Space and then Enter to insert the snippet.

Snippet Name Prefix Description
snippetSingleLine snippet-single Create a custom snippet with a single body
snippetMultiLine snippet-multi Create a custom snippet with multiple lines
snippetMultiLineBody snippet-multi-body Add another snippet on the body of multi-line custom snippet
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft