Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Snippets are awesome. Creating one is painful. This saves time. #81
We sometimes write the same code multiple times. For example Configs (related to webpack bable, prettier, eslint etc), frequently used react component code and other boiler plate code.
Some of us store them in GitHub's Gists, but have to copy paste it when required. Snippets are handy shortcuts to generate code for us. For example if you type
We can create our own custom snippets for frequently written code to increase productivity. However writing it is painful. So here is a handy tool that creates snippet for you.
This tool works for sublime, atom and VS Code. However I like VS Code so this one is mostly about it.
Just copy paste your code on left side. Add $1 for first tab, $2 for second tab and so on.
After that Go to 'Preferences' > 'User snippets' and select the correct type, then paste in the copied code.