Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

License

Notifications You must be signed in to change notification settings

shiftEscape/console-buddy

Open more actions menu

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.