Visual Studio Code is my code editor of choice. Here are some tips & tricks I have found useful:
When defining a snippet use Code2Snippets for VSCode. At least at the time of writing, you have to define the body of the snippet using an array, one element per line. This tool converts multi-line code into a compatible array for your snippets-definition.json file.