0
Invalid auto-indentation in "if" statement on C-like languages
With the following code on C/C++/JavaScript/C-like languages: (note: _ is the cursor position)
if (a == b || c == d) _
If we press { and then ENTER key, we get:
if (a == b || a == c) { _ }
Which is invalid, we should get:
if (a == b || a == c) { _ }
0
David Capello hace 13 años
Even jQuery source code use this kind of indentation.
+1
David Capello hace 13 años
It's quite interesting to see that people can vote down a bug. lol
0
Ryan Park hace 13 años
Yes I agree, this indentation style is not uncommon.
Servicio de atención al cliente por UserEcho