0.0.1 • Published 7 years ago
@kompanion/vscode-snippets v0.0.1
User Snippets for VS Code
Note: To use this, you need VS Code.
These snippets will speed up your work by allowing complex code structures to be built at a few keystrokes. After setting them up, you'll write the prefix for the snippet and then press TAB (by default) to expand the code.
The set-up is simple: open the menu "Configure User Snippets" under "Preferences" (you can do so by typing CTRL + SHIFT + P and typing "snippet" in the search box), choose the language you want to change and then copy and paste the snippets you want.
What's included
- Included in all Javascript-related syntaxes:
loggfor logging variables with separators;
.jsSnippets:- Sanity.io objects and documents;
- Suggestions welcome for other snippets!
.tsxSnippets:tsIntfor basic interfacesrsffor stateful (class) React componentsrslfor stateless (functional) React components- with alternative
rslNoInterface
- with alternative
rsfscfor stateful (class) React components with styled-componentsrslscfor stateless (functional) React components with styled-components
0.0.1
7 years ago