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

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
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature)
- Commit your changes (
git commit -m 'feat: add my feature')
- Push to the branch (
git push origin feature/my-feature)
- Open a Pull Request
License
MIT
Made by Keval Badarakhiya