Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Console BuddyNew to Visual Studio Code? Get it now.

Console Buddy

Alvin Bellero

|
38 installs
| (0) | Free
Increase your productivity with Console Buddy!
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Console Buddy — VSCode Extension (Snippets)

✨ A Snippet Extension that provides a collection of Web Console API snippets that allows you to quickly generated logging preference!

Usage Demo

demo-console-buddy

List of Snippet Prefixes

Below is a list of all available snippets and the triggers of each one. The (→) means the TAB key.

Trigger Resulting Snippet — Description
!cl→ console.log(`Check your log here`); — Plain text logging preference

Options: (log, error, info, warn, table, count, countReset)
!clp→ console.log(`LOG >>>`, var_name);
String prefix logging preference
!clv→ console.log(var_name);
Variable logging preference
!clo→ console.log({ var_name });
Object format logging preference
!cltm→ console.time(); or console.timeEnd();
A timer you can use to track how long an operation takes
!cltr→ console.trace();
Outputs a stack trace into console
!clg→ console.group(); or console.groupCollapsed();
Creates a new inline group in the console, causing any subsequent console messages to be indented by an additional level
!cla→ console.assert();
Writes an error message to the console if the assertion is false. If the assertion is true, nothing happens
!cld→ console.dir();
Displays an interactive list of the properties of the specified JavaScript object
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft