Sublime Forum

C++ function parameter indentation issue

#1

There seems to be a c++ indentation issue with sublime (Build 2164 and probably earlier).

The following c/c++ code formats the following way (by hitting enter and expecting the auto-indentation to do the right thing):

int main(int argc, char* argv]) { return 0; }

The problem is that the function parameters don’t align as one would expect. I verified that it does work on textmate though, resulting correctly to:

int main(int argc, char* argv]) { return 0; }

0 Likes