Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Console Statement Manager SPNew to Visual Studio Code? Get it now.
Console Statement Manager SP

Console Statement Manager SP

SMIT_PATEL_SP

|
6 installs
| (0) | Free
Manage console statements (log, warn, error, table) in your code with options to comment, uncomment, or remove them
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Console Statement Manager SP

⚠️ Disclaimer ⚠️

This is NOT an official Angular extension. This extension is a community-developed tool and is not affiliated VS code officials or their official teams. This is just a Visual Studio Code extension that helps you manage console statements (log, warn, error, table) in your JavaScript and TypeScript code.

Features

  • Unified Console Management: Access all console management features through a single context menu option
  • Multiple Operations:
    • Comment console statements
    • Uncomment console statements
    • Remove all console statements
    • Selective removal of console statements (All, Active, or Commented)
  • Smart Processing:
    • Works with both single files and entire directories
    • Preserves code formatting
    • Handles multi-line console statements
    • Supports JavaScript and TypeScript files (.js, .jsx, .ts, .tsx)
  • Auto-formatting: Automatically format document after commenting/uncommenting console statements (configurable)

Commands

  • Manage Console Statements: Shows all available options
  • Comment Console Statements: Comments all console statements
  • Uncomment Console Statements: Uncomments all console statements
  • Remove Console Statements (All): Removes all console statements
  • Remove Console Statements (Selective): Removes specific types of console statements

Installation

  1. Open Visual Studio Code
  2. Press Ctrl+P to open the Quick Open dialog
  3. Paste the following command and press Enter:
    ext install SMITPATELSP.console-statement-manager-sp
    
  4. Click the Install button

Usage

Context Menu (Recommended)

  1. Right-click on a file or folder in the VS Code Explorer
  2. Select "Manage Console Statements"
  3. Choose from the available options:
    • Comment Console Statements
    • Uncomment Console Statements
    • Remove Console Statements (All)
    • Remove Console Statements (Selective)

Command Palette

  1. Press Ctrl+Shift+P to open the Command Palette
  2. Type "Console Statement Manager" to see all available commands
  3. Select the desired command:
    • Comment Console Statements
    • Uncomment Console Statements
    • Remove Console Statements (All)
    • Remove Console Statements (Selective)

Selective Removal

When choosing "Remove Console Statements (Selective)", you'll be presented with three options:

  • Remove All Console Statements
  • Remove Only Active Console Statements
  • Remove Only Commented Console Statements

Requirements

  • Visual Studio Code version 1.85.0 or higher

Extension Settings

This extension contributes the following settings:

  • consoleStatementManager.autoFormatOnComment: Enable/disable automatic document formatting after commenting/uncommenting console statements (default: true)

To modify settings:

  1. Open VS Code Settings (Ctrl+,)
  2. Search for "Console Statement Manager"
  3. Toggle the auto-formatting option as needed

Known Issues

None at the moment.

Release Notes

See the CHANGELOG.md file for a complete list of changes.

License

This extension is licensed under the MIT License.

Author

  • SMIT PATEL
  • VS Code Marketplace: SMITPATELSP
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft