Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Smart CommentsNew to Visual Studio Code? Get it now.
Smart Comments

Smart Comments

Anish Pallati

|
178 installs
| (3) | Free
Improved functionality for the comment keybind
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Smart Comments for VS Code

What is this?

This extension combines comment and blockComment into oned command. It will comment a line if no text is selected, otherwise it will apply a block comment to the selection. Selecting multiple lines will now use block comments instead of multiple line comments.

In addition, you no longer need to select all of the text inside a block comment to uncomment it. The extension will uncomment it if the cursor is anywhere inside the comment.

Usage

  1. Install the dependency extension, HyperScopes
  2. Install the extension from the VS Code Marketplace
  3. Use the comment keybind (Ctrl + / or ⌘ + /)

Known Limitations

  • Uncommenting does not work properly in JSX. An extra pair of curly braces is left over.
  • For multiline block comments, you must still highlight the entire comment. Simply placing the cursor inside the comment will not work.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft