This creates a shortcut of clg which maps to console.log() and inserts your cursor between the parenthesis (The $1 location). You can also add multiple strings in the prefix array if you'd like to set multiple shortcuts to the same thing.
When creating more shortcuts, you can use $1, $2, $3, etc... to quickly be able to tab through to multiple spots :)
For further actions, you may consider blocking this person and/or reporting abuse
If you're using VS Code you can use Ctrl + Shift + Pand search for "User Snippets" and select "Preferences: Configure User Snippets"
Select JavaScript to create a shortcut file and add this to the contents:
This creates a shortcut of
clg
which maps toconsole.log()
and inserts your cursor between the parenthesis (The$1
location). You can also add multiple strings in theprefix
array if you'd like to set multiple shortcuts to the same thing.When creating more shortcuts, you can use
$1
,$2
,$3
, etc... to quickly be able to tab through to multiple spots :)