Skip to content

format on type characters with clang-format #5962

@bobbrow

Description

@bobbrow

In latest vscode-insiders and cpp extension insider version, I noticed that open curly braces will also trigger formating?

Like this:

if (in_the_past) {
  |
}

-------------------

if (it_s_now) {
|}

This is very inconvenient as it format immediately after I entered a { and put the cursor and } on the next line.

I've disabled editor.formatOnType for [cpp] in my current workspace to avoid this for now.

Originally posted by @escape0707 in #1419 (comment)

Metadata

Metadata

Assignees

Labels

Feature: Code FormattingbugfixedCheck the Milestone for the release in which the fix is or will be available.regressionA bug that didn't exist in a previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions