mike7515 / code-beautifier

MIT License
19 stars 5 forks source link

Respect comment line #17

Closed victor-cano closed 5 years ago

victor-cano commented 6 years ago

I have been experiencing some issue, when I use this extension with .scss it moves the comments line to the end of the previous line.

Example:

body{
width:100%;
}
//more rules

become

body{
width:100%;
}//more rules
mike7515 commented 6 years ago

Hi, The extension merges the comments line with the code line only if the code is preceded of spaces or tabs. This is the behaviour of the js-beautify library used for indent the code.