✨ A Snippet Extension that provides a collection of Web Console API snippets that allows you to quickly generated logging preference!
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 preferenceOptions: ( 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 |