Does SCSS support inline comments?
Solution 1:
There are two different types of comments to consider in SASS.
- Single line comments
//
will be removed by the .scss pre-procesor, and won't appear in your .css file. -
Multiline comments
*/
are valid CSS, and will be preserved* between the translation from .scss to your .css file.- Except for some compressed modes, unless you start the comment with a
!
. See http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#comments.
- Except for some compressed modes, unless you start the comment with a
It sounds like inline comments //
are what you're looking for.
Solution 2:
Yes, you can do it in SCSS.
Use inline comment: //
.
These single-line comments are removed in the CSS output.