Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Manta's Hot SnippetNew to Visual Studio Code? Get it now.

Manta's Hot Snippet

Anantachai Saothong

|
58 installs
| (0) | Free
Insert snippets without delays.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Hot Snippet is a Visual Studio Code extension that helps quickly insert user-defined snippets.

This extension aims to solve the problem that adding a snippet from IntelliSense menu is too slow to show up. Developers who have fast-typing pace might get annoyed by the slowness of IntelliSense menu, especially in a big repository.

Basic usage

As soon as the extension is activated, it automatically sets editor.snippetSuggestions to "off" at user-level settings. This avoids redundant snippet suggestions offered by IntelliSense menu.

The extension reads your global-scoped and project-scoped snippets and monitors your keystrokes; whenever the key sequence matches the prefix defined in the user snippets (File > Preferences > User Snippets) followed by a space key, it replaces the prefix with the matching snippet.

For example, given the below JavaScript snippet template, you can quickly type cs, fx, and lg to generate const, function, and console.log() respectively.

// See also https://code.visualstudio.com/docs/editor/userdefinedsnippets
{
  "const": {
    "prefix": "cs",
    "body": "const "
  },
  "function": {
    "prefix": "fx",
    "body": ["function($1) {", "\t$0", "}"]
  },
  "log": {
    "prefix": "lg",
    "body": "console.log($0)"
  }
}

How to insert snippets

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft