Sublime Forum

Auto indent misbehaving with comments

#1

My C++ header comment blocks indent 1 space as such (two spaces are shown since 1 leading space doesn’t show in the code block):

[code]/******************************************************
<- note space
another indented comment line
final line, ending the comment, is not indented


*/[/code]

Auto indent then keeps indenting any line beginning with a “#” one space until a non preprocessor directive is entered. Is there anyway to avoid this behavior?

0 Likes