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
This community will be migrating to a dedicated subforem in the near future. We are excited to announce a new take on the CodeNewbie Community soon! Email support@forem.com if you have any questions.
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
clgwhich maps toconsole.log()and inserts your cursor between the parenthesis (The$1location). You can also add multiple strings in theprefixarray 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 :)