Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>ConsoleXNew to Visual Studio Code? Get it now.
ConsoleX

ConsoleX

consoleX

|
110 installs
| (1) | Free
The ultimate debugging companion: Instantly insert, comment, or delete console logs and print statements across 17+ languages with one shortcut.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ConsoleX

Instantly insert, comment, or delete debug logs across 17+ languages.

VS Code Marketplace Open VSX License: MIT

ConsoleX is a lightweight VS Code extension that supercharges your debugging workflow. Select a variable, press one shortcut, and get the correct log statement for your language — automatically.

Features

  • Smart Variable Logging — Select a variable and press Ctrl+Shift+M to insert a labeled log statement, even inside multi-line objects, arrays, function calls, and method chains.
  • Checkpoint Logging — Press the shortcut without any selection to insert a "checkpoint reached" log.
  • 17+ Languages — One shortcut works across JavaScript, TypeScript, Python, Java, C++, Go, Rust, and more.
  • Bulk Actions — Comment, uncomment, or delete all ConsoleX logs in a file with a single command.
  • Smart Placement — Logs are inserted after the complete statement, not in the middle of multi-line expressions.

Shortcuts

Action Windows / Linux macOS
Insert Log Ctrl+Shift+M Cmd+Shift+M
Comment All Logs Ctrl+Shift+Alt+C Cmd+Shift+Alt+C
Uncomment All Logs Ctrl+Shift+Alt+U Cmd+Shift+Alt+U
Delete All Logs Ctrl+Shift+Alt+D Cmd+Shift+Alt+D

Supported Languages

Language Log Function File Extensions
JavaScript / TypeScript console.log() .js .ts .jsx .tsx .vue .svelte
Python print() .py
Java System.out.println() .java
C / C++ std::cout .c .cpp .h .hpp
C# Console.WriteLine() .cs
Go fmt.Println() .go
Rust println!() .rs
Kotlin println() .kt .kts
Swift print() .swift
Dart print() .dart
Ruby puts .rb
PHP echo .php
Scala println() .scala
Lua print() .lua
Elixir IO.inspect() .ex .exs
R cat() .r .R
Shell / Bash / Zsh echo .sh .bash .zsh

Installation

VS Code Marketplace:

ext install consoleX.consolex

Open VSX (Cursor, Antigravity, VSCodium, Gitpod): Search "ConsoleX" in the Extensions panel.

Manual:

code --install-extension consolex-2.0.5.vsix

Development

git clone https://github.com/Keval9247/ConsoleX.git
cd ConsoleX/consolex
npm install

Press F5 in VS Code to launch the Extension Development Host.

Build

npm run compile    # TypeScript compile
npm run build      # Minified production build (esbuild)
npm run package    # Create .vsix

Project Structure

consolex/
├── src/
│   ├── extension.ts       # Main extension logic
│   └── test/
│       └── extension.test.ts
├── package.json           # Extension manifest
├── tsconfig.json          # TypeScript config
├── CHANGELOG.md           # Version history
└── console2.png           # Extension icon

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/my-feature)
  3. Commit your changes (git commit -m 'feat: add my feature')
  4. Push to the branch (git push origin feature/my-feature)
  5. Open a Pull Request

License

MIT


Made by Keval Badarakhiya

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