Skip to content

Manage your own vscode code snippets and turn your selection into a snippet easily!

License

Notifications You must be signed in to change notification settings

promise96319/snippets-manager

Repository files navigation

Snippets Manager

English | 简体中文

Code snippets demo

Manage your code snippets in a super easy way!

Features

  • Support easily generating code snippets from selected content.
  • Support grouping and managing code snippets.
  • Automatically detect the corresponding programming language for code snippets.
  • Support visual management of code snippet groups through directory structure.

How to use

  1. First, select the content you want to convert into a code snippet, such as: Select code
  2. Press cmd+k, then press cmd+shift+s, enter the snippets shortcut and confirm. Enter prefix
  3. Edit the content: Edit content
    • group: the name of the group to which the code snippet belongs, such as project-a.
    • scope: the scope of the code snippet, such as javascript. When left blank, the code snippet can be used in any file.
    • prefix: the shortcut for the code snippet, such as log for console.log template.
    • description: the detailed content of the code snippet prompt. To use more syntax for code snippets, please refer to the VSCode official documentation.
  4. Finally, press cmd+s to save the code snippet, and you will be able to see the corresponding code snippet shortcut in the sidebar grouping. Now, we can happily use the code snippets~ Code snippets demo

License

MIT

About

Manage your own vscode code snippets and turn your selection into a snippet easily!

Resources

License

Stars

Watchers

Forks

Packages

No packages published