ConsoleX

April 7, 2026 · View on GitHub

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

ActionWindows / LinuxmacOS
Insert LogCtrl+Shift+MCmd+Shift+M
Comment All LogsCtrl+Shift+Alt+CCmd+Shift+Alt+C
Uncomment All LogsCtrl+Shift+Alt+UCmd+Shift+Alt+U
Delete All LogsCtrl+Shift+Alt+DCmd+Shift+Alt+D

Supported Languages

LanguageLog FunctionFile Extensions
JavaScript / TypeScriptconsole.log().js .ts .jsx .tsx .vue .svelte
Pythonprint().py
JavaSystem.out.println().java
C / C++std::cout.c .cpp .h .hpp
C#Console.WriteLine().cs
Gofmt.Println().go
Rustprintln!().rs
Kotlinprintln().kt .kts
Swiftprint().swift
Dartprint().dart
Rubyputs.rb
PHPecho.php
Scalaprintln().scala
Luaprint().lua
ElixirIO.inspect().ex .exs
Rcat().r .R
Shell / Bash / Zshecho.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