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

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
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]
// REPRODUCE:
// 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;
}