Skip to content

Node utility that creates vscode snippets from the terminal. It uses existing code to generate snippets.

Notifications You must be signed in to change notification settings

eenewbsauce/vscode-snippet-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VS Code Snippet Creator

Installation

npm install

Setup

eg:

/**
 * description: "Unit Test Server"
 * prefix: "uts"
 */
describe("$1 ::", () => {
  afterEach(() => {});

  beforeEach(() => {});

  test("Should $2", () => {});
});

Run

  • From terminal
createSnippet

Snippets are written to stdout

OR

createSnippet true

Snippets written directly to javascript.json in vs code (mac only)

Add to VS Code

  • Open javascript.json
  • Paste your new snippets

Enjoy : )

About

Node utility that creates vscode snippets from the terminal. It uses existing code to generate snippets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published