Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"if" braces deindentation problem (same as Issue #30933) happens with the C/C++ extension #112299

Closed
FredericChasse opened this issue Dec 11, 2020 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@FredericChasse
Copy link

FredericChasse commented Dec 11, 2020

I have observed the same behavior as #30933, but for the C/C++ extension.

  • VSCode Version: 1.52.0
  • OS Version: Windows_NT x64 10.0.19041

Steps to Reproduce:

In a C or C++ source file, type "if (cond)":

if (cond) |

Press enter:

if (cond)
    |

Type {, then enter. Expected:

if (cond)
{
    |
}

Actual:

if (cond)
    {
    |
    }

Does this issue occur when all extensions are disabled?: No. It is specifically the C/C++ extension

@FredericChasse FredericChasse changed the title Issue #30933 happens with the C/C++ extension "if" braces deindentation problem (same as Issue #30933) happens with the C/C++ extension Dec 11, 2020
@alexdima alexdima assigned rebornix and unassigned alexdima Dec 14, 2020
@rebornix rebornix added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 15, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Nov 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants
@rebornix @alexdima @FredericChasse and others