Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>console-log-snippet-javascriptNew to Visual Studio Code? Get it now.
console-log-snippet-javascript

console-log-snippet-javascript

Levente Balogh

|
12,862 installs
| (1) | Free
A trivial but useful console.log() snippet for VS Code, which adds two separator lines around your comment.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

console.log() snippet for VS Code

The only plus in this snippet is that it adds those separator lines around your log which can make it easier to spot your logs if you have a lot of other logs in the console, or if they are hard to filter.

Example console.log() snippet for VS Code

Install

Displaying your snippets as first suggestions

As you can see in the example on the top, the snippets appear as the first suggestions on autocomplete for me. This can come very handy, and it is very easy to set up:

  1. Open Settings (Cmd + , on Mac)
  2. Add the following line to your personal settings: "editor.snippetSuggestions": "top"
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft