- Bring up the Command Palette with β+β§+P
- Type "Configure User Snippets".
- Select "New Global Snippets file".
- Name it whatever you want.
- Paste in the contents of the
.code-snippetsfile in this gist.
- Bring up the Command Palette with β+β§+P
- Type "Insert Snippet".
- Type "logvar" (or whatever you named the snippet you created), and select it.
console.log(`someVar:`, someVar);
Is it possible to escape backticks in the thing to be logged?