Skip to content

✨ 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

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!

Resources

License

Stars

Watchers

Forks

Releases

No releases published