Home Download Buy Blog Forum Support

c++ function parameter indentation issue

c++ function parameter indentation issue

Postby itsouk on Wed Jan 11, 2012 11:52 pm

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):

Code: Select all
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:

Code: Select all
int main(int argc,
         char* argv[]) {
  return 0;
}
itsouk
 
Posts: 1
Joined: Wed Jan 11, 2012 11:44 pm

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 32 guests