Author Topic: adaptive formatting issue <ENTER> after open brace  (Read 177 times)


  • Senior Community Member
  • Posts: 2109
  • Hero Points: 127
adaptive formatting issue <ENTER> after open brace
« on: September 14, 2021, 09:01:18 pm »
Look for adaptiveformatissue.tgz on support which has my user.cfg.xml.

See "REPRODUCE" in the code sample below:

Code: [Select]
// Place the cursor just to the right of the open brace below and press <ENTER>
// With adaptive formatting I expect to have 4 spaces indent, even
// though my config is set to 2 spaces indent, with the adaptive
// formatting I would expect to get the same indenting as everything
// else inside the braces. But instead of having an indent of
// 4 spaces, it is indenting 2 spaces.

void myfunc()
    int var = 5;
    int var2 = 3;