hey guys! who knows how to "console.log" shortcut
its quite fustrating writing it multipe times
For further actions, you may consider blocking this person and/or reporting abuse
hey guys! who knows how to "console.log" shortcut
its quite fustrating writing it multipe times
For further actions, you may consider blocking this person and/or reporting abuse
jiqel -
Hiredeveloper -
Hiredeveloper -
Hiredeveloper -
Top comments (1)
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 :)