Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Comment Out CSS — Lint FriendlyNew to Visual Studio Code? Get it now.
Comment Out CSS — Lint Friendly

Comment Out CSS — Lint Friendly

Jon Ellwood

|
2 installs
| (0) | Free
Comments out CSS (including CSS that itself contains comments). Basically, adds nested comments to CSS - but adds a whitespace between the emoji and asterisk so stylelint does not yell at me
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Comment Out CSS

Demonstration of a block of CSS code that contains comments being commented-out and re-enabled using this extension.

A Visual Studio Code and VSCodium extension that enables you to comment out sections of your CSS even if they contain comments.

Basically, it adds the ability to have nested comments in CSS to VScode (and VSCodium).

Usage

  1. Select an area of CSS to comment out.
  2. Press Ctrl + / (macOS: Cmd + /), or select Comment Out CSS from the command menu.

The command will toggle between commenting out and uncommenting your selection.

Limitations

  • Can only toggle the status of one commented-out block at a time.
  • Can not comment out a selection that contains only part of a regular CSS comment.
  • You must select the area to be commented (simply having the cursor within a block is not enough).

License

AGPL version 3.0 or later.

Attribution

This extension is a modified version of Comment Out CSS, originally created by Small Technology Foundation contributors.

The original project and this modified version are licensed under the GNU Affero General Public License, version 3 or later.

Modifications

Modified by Jon Ellwood in July 2026.

Changes from the original version:

  • Added whitespace inside generated CSS comment markers.
  • Changed generated comments from: /*👉 CSS HERE 👈*/ to: /* 👉 CSS HERE 👈 */
  • Updated extension naming and Marketplace metadata.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft