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 13 years ago
Even jQuery source code use this kind of indentation.
+1
David Capello 13 years ago
It's quite interesting to see that people can vote down a bug. lol
0
Ryan Park 13 years ago
Yes I agree, this indentation style is not uncommon.
Customer support service by UserEcho