
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
- Select an area of CSS to comment out.
- Press
Ctrl + /(macOS:Cmd + /), or selectComment Out CSSfrom 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
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.