Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>teexiii's broNew to Visual Studio Code? Get it now.
teexiii's bro

teexiii's bro

Tam L

|
10 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Console Import Cleaner Extension

Overview

The Console Import Cleaner is a Visual Studio Code extension designed to automatically remove unnecessary import statements related to the console module from your JavaScript or TypeScript files. This extension is particularly useful for cleaning up code by removing leftover debug import statements.

Features

  • Automatic Removal on Save: The extension activates whenever you save a JavaScript or TypeScript file, scanning for and removing lines that import from the console module.
  • Supported Import Formats: The extension currently supports the removal of the following import statement patterns:
    • import console from "console";
    • import console from 'console';
    • import * from "console";
    • import { log } from "console";
  • Customizable: Users can modify the extension to suit different patterns or additional JavaScript modules.

How to Use

  1. Install the Extension: Download and install the extension from the Visual Studio Code Marketplace.
  2. Write Your Code: Work on your JavaScript or TypeScript files as usual.
  3. Save Your File: When you save your file, the extension automatically checks for and removes specified console import statements.

Requirements

  • Visual Studio Code 1.XX.X or higher.
  • JavaScript or TypeScript files.

Extension Settings

This extension does not require any specific settings. It works out of the box once installed.

Known Issues

Currently, there are no known issues. If you encounter any bugs or have feature requests, please report them at the repository's issues section.

Release Notes

0.0.1

Initial release of Console Import Cleaner.

  • Basic functionality to remove console import statements on file save.
  • Support for standard JavaScript and TypeScript import formats.

Contributing

Contributions to the Console Import Cleaner are welcome. Please refer to the project's repository for contribution guidelines.

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