Find a key chord combination that you can use to group snippets into logical sets.
For my dev environment, I use ctrl+alt+ichord toctrl+alt+ <key>, with the number pad keys for snippets that make up shell script boilerplate.
ctrl+alt+numpad0 for shebang ctrl+alt+numpad1 for script header (#insert a document summary) ctrl+alt+numpad2 for shellscript ("unofficial" bash strict mode) ctrl+alt+d for date stamp ctrl+alt+f for filename
Curious web developer interested in tech, dogs, & good food! Believer in all things magical and lover of people! Work with some of the most amazing people and customers @ Cloudinary!
π¦ must have extensions
Rainbow Brackets)π¦ΈββοΈ superpowered snippets
Add keybindings to your code snippets
...by inserting snippets in your keybindings.
Edit
keybindings.jsonRun
Preferences: Open Keyboard Shortcuts (JSON)command.Add keyboard shortcuts to snippets.
Insert SnippetArgparameternamewith the Name of the snippet.Whento"editorTextFocus"To use snippets only specific languages:
When:&& editorLangId == 'shellscript'Argparameterlangidwith the language IdOfficial docs: code.visualstudio.com/docs/editor/...
shellscript only snippet
shellscriptonly snippetkey chord combinations
Find a key chord combination that you can use to group snippets into logical sets.
For my dev environment, I use
ctrl+alt+ichord toctrl+alt+ <key>, with the number pad keys for snippets that make up shell script boilerplate.example
keybindings.jsonkeybindings.json examples
keybindings.jsonAnd also bind
ctrl+itoInsert Snippet. (no args)βΉοΈ Reason for edit:
Awesome list Virgil! I have 3 out of the 4 must have extensions so I consider that a win :D
Great tip on the keybindings as well, I remember setting mine up and it was a pain but worth it in the long run for sure.
@jsgoose , I've just added some example keybindings and changed the bracket colorizer to the one I intended.
Thanks for the original that inspired me to contribute !