Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>copyWithoutCommentsNew to Visual Studio Code? Get it now.
copyWithoutComments

copyWithoutComments

Eitan Waks

|
222 installs
| (0) | Free
A Visual Studio Code extension that allows users to copy selected text to the clipboard, automatically excluding any comments. This is particularly useful for developers looking to copy clean, comment-free code quickly and easily. Supports Python multiline (triple quotes) and single-line (#) comment
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Without Comments Extension for Visual Studio Code

This is the README for the "Copy Without Comments" extension for Visual Studio Code. This extension allows you to copy code from your editor without including any comments. It can handle both single-line and multi-line comments, and if no text is selected, it will copy all text in the current file. The current version of the extension supports Python.

Features

The "Copy Without Comments" extension allows you to:

  1. Copy single-line code without comments (Python)
  2. Copy multi-line code without comments (Python)
  3. If no text is selected, all text in the file is copied

Usage

To use the extension, open the Command Palette (Ctrl+Shift+P), type "Copy without Comments", and hit Enter. The code, minus any comments, is copied to your clipboard.

Requirements

This extension does not have any specific requirements or dependencies.

Known Issues

There are no known issues at the moment. If you encounter any problems, please open an issue on the GitHub repository.

Release Notes

1.0.0

Initial release of the "Copy Without Comments" extension. This version supports Python comments.


Contributing

We welcome contributions! If you have a suggestion or found a bug, please open an issue on our GitHub repository.

More Information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy using Copy Without Comments!

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