Sublime Forum

[BUG] Reindent function for C++ fails

#1

Hi,

I’ve found a little glitch about the C++ reindent functionality.
If a closing ‘}’ is followed on the same line by a comment, all the indentation will fail.

0 Likes

Dev Build 3026
Dev Build 3027
#2

Anything new on this issue ?
In fact any comment anywhere breaks the auto indent feature, still happens in ST3 beta 3022.

{
if(thing->update())
{
doStuff();//Comment here
}
}

Reindenting this as C++ is impossible, it is broken.

0 Likes

#3

Can someone please try to reproduce this (do not forget to ctrl+shift+P and set syntax as C++) and confirm I’m not the only one affected ?

Thanks.

0 Likes

#4

Hey man, how do I compile and build my program. I’m doing C syntax, how do I run it as an exe? like DevCpp

0 Likes

#5

[quote=“Xaapyks”]Can someone please try to reproduce this (do not forget to ctrl+shift+P and set syntax as C++) and confirm I’m not the only one affected ?

Thanks.[/quote]

You are definitely not the one affected.

0 Likes

#6

Oh I happen to work mainly on C++, so I hadn’t notice it was failing on JS too.

Hope this gets fixed, it’s rather annoying.

Thanks for your answer.

0 Likes

#7

This bug is still happening with ST3 3046.

0 Likes

#8

Issue still present in 3053

0 Likes