Sublime Forum

ST3 SASS single line comment is auto-replaced with multi-line CSS comment

#1

Using ST3 v3.1.1 Build 3176.

The subject pretty much says it all. In my .scss files when I use single line comments using a double // the comment is auto-corrected upon file save to the multi-line comment style /* */

This is frustrating because it means there is no way for me to have hidden comments in my .scss files, they all get corrected to multi-line comments and are processed and output to the .css file. Just to clarify, the moment I save my .scss file the comments auto-correct right away within the .scss file itself.

I tried disabling any packages that might be causing this but no luck. I’m desperate so I’m posting this here on the forum in case anyone has any ideas.

Help appreciated.

Cheers.

0 Likes

#2

well if it’s not a package, then it must be something external to ST. Maybe some application watching the folder and doing an auto format or something?

0 Likes

#3

Hey @kingkeith,

Your confidence that the issue was not a bug but rather one of those two possibilities you mentioned, made me go back and disable each package one by one, this time making sure to remove every single package, even ones that seemed to have little or nothing to do with CSS/SASS syntax.

Found the culprit! For any other ST3 users having issues, the Autoprefixer package seems to conflict with the SCSS syntax (provided by the SASS package) and causes single line comments to be auto-corrected to multi-line comments. Quite odd really, the autoprefixer is clearly going above and beyond its duties here. :slight_smile:

Thanks @kingkeith you’re a gem!

0 Likes