Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Quick ConsoleNew to Visual Studio Code? Get it now.
Quick Console

Quick Console

Efrice

|
40 installs
| (1) | Free
Quick generate console.log for variables with selection or not anywhere
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Quick Console

Quick generate console.log for variables with selection or not anywhere.

Features

origin generate
=>
  • 🧂 It's can be use anywhere.
  • 🍭 Single variable without selection.
  • 🌭 Multiple params of function with selection.
  • 🌭 Multiple continuous variables like deconstruct assignment with selection.
  • 🍖 Clear console.logs in the active file.

Usage

Without Selection

  • Move the cursor near variable.
  • Press Cmd + Shift + L (Mac) or Ctrl + Shift + L (Windows).
  • Next line will be:
    console.log('variable:', variable)

With Selection

  • Selected continuous variables or params of function.
  • Press Cmd + Shift + L (Mac) or Ctrl + Shift + L (Windows).
  • Next line will be:
    console.log('variable1:', variable1)
    console.log('variable2:', variable2)

Clear console.logs

  • Press Cmd + Shift + K (Mac) or Ctrl + Shift + K (Windows).

Vim keyBindings Setting

"vim.visualModeKeyBindingsNonRecursive": [
  {
    "before": ["<leader>", "l"],
    "commands": [
      "quickConsole.createConsoleLog",
      "extension.vim_ctrl+["
    ]
  },
  {
    "before": ["<leader>", "k"],
    "commands": ["quickConsole.clearConsoleLog"]
  }
],
"vim.normalModeKeyBindingsNonRecursive": [
  {
    "before": ["<leader>", "l"],
    "commands": ["quickConsole.createConsoleLog"]
  },
  {
    "before": ["<leader>", "k"],
    "commands": ["quickConsole.clearConsoleLog"]
  }
]

✨ Happy hacking!

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft