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 лет назад
Even jQuery source code use this kind of indentation.
+1
David Capello 13 лет назад
It's quite interesting to see that people can vote down a bug. lol
0
Ryan Park 13 лет назад
Yes I agree, this indentation style is not uncommon.
Сервис поддержки клиентов работает на платформе UserEcho