Skip to content

A Visual Studio Code extension for cht.sh / cheat.sh

License

Notifications You must be signed in to change notification settings

chubin/vscode-snippet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vscode-snippet

The MIT License GitHub Visual Studio Marketplace

A Visual Studio Code extension for cht.sh.

Features

  • Zero configuration: works out of the box.
  • Automatically detects programming language from current editor window.

Config options

  • openInNewEditor: open snippets or in new editor window (default) in line with current document.
  • verbose: add comments around code snippets.

Installation

Install this extension from the VSCode Marketplace

Usage

Search for a snippet

  1. Hit ⌘ Command + ⇧ Shift + p
  2. Run Snippet: Find.
  3. Type your query and hit enter.

Preview

Search for snippet based on selected text

  1. Select some text in an editor window.
  2. Right click and choose "Find snippet from selected text"

Preview

Alternatively, you can also run the Snippet: Find Selected Text from the command menu:

Preview

You can configure a keyboard shortcut. By default this is ⌘ Command + ⇧ Shift + s:

Preview

Contributing

This plugin is far from feature-complete.
If you want to improve it, feel free to pick one of the open issues and give it a shot.
In case you need any help, just add a comment to the issue to get a conversation started. 😃

About

A Visual Studio Code extension for cht.sh / cheat.sh

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%