Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>vs-console-snippetsNew to Visual Studio Code? Get it now.
vs-console-snippets

vs-console-snippets

Jose Baro

|
224 installs
| (0) | Free
This extension contains code snippets for fast use of console methods for Vs Code editor (supports both JavaScript and TypeScript).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vs-console-snippets README

A snippets pack to make you more productive debugging with JavaScript/Typescript.

Download this extension from the Visual Studio Code Marketplace

Features

Simply start to write log (or con) and next char will define type of log

logClipboard

Logs content of clipboard.

  1. ⌘ Command c !true===false
  2. On new line start typing logc
  3. First suggest option should be logClipboard
  4. tab and get:
console.log('!true===false',!true===false);

logClipboard

logFunction

Logs function name params and its values under it definition.

  1. At the end of a function definition start typing logf
  2. First suggest option should be logFunction
  3. tab and get:
console.log('foo(param1, param2)', param1, param2);

logFunction

It supports many function definitions like:

  • function foo(param1, param2) {
  • const foo = (param1, param2) => {
  • foo: function(param1, param2) {

logFunction 1

logFunction 2

logFunction 3

log--

Logs a sepparator in order to differentiate log lines or find a particular log line.

  1. Anywhere start typing log-
  2. First suggest option should be log--
  3. tab and get:
console.log('------------------');

log--

logLineNumber

Logs current line number.

  1. Anywhere start typing logl
  2. First suggest option should be logLineNumber
  3. tab and get:
console.log('line 38');

logLineNumber

logAssigment

Logs the value of a varible after its definition.

  1. At the end of a variable definition start typing loga
  2. First suggest option should be logAssigment
  3. tab and get:
console.log('foo', foo);

logAssigment

logThisLine

Logs the value of a varible after its definition.

  1. At the end of any line start typing logt
  2. First suggest option should be logThisLine
  3. tab and get:
console.log('CURRENT LINE TEXT');

logThisLine

Generic console snippets

conDebug

  1. Anywhere start typing cond
  2. First suggest option should be conDebug
  3. tab and get:
console.

with a list of console methods. 4. Select one and use tab to navigate. conDebug

Requirements

Zero configuration: works out of the box.

Release Notes

Users appreciate release notes as you update your extension.

1.0.0

First release

1.0.1

Fix README

1.0.2

Fix logAssigment and logFunction

1.0.3

Add indentation on logFunction snippet

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft