Arduino-pro-ide: "ctrl+T" changes the braces position I HATE that

Created on 4 Sep 2020  路  2Comments  路  Source: arduino/arduino-pro-ide

after auto-fomating in Arduino Pro IDE. It changes the braces position (but legacy IDE doesn't):
image

enhancement

Most helpful comment

after auto-fomating in Arduino Pro IDE. It changes the braces position (but legacy IDE doesn't):

Yes, this is a reasonable request. However, we have to figure out how users can/will customize it.
Let's investigate the BraceWrappingFlags options from here. Here is an online clangd formatter with preview.

All 2 comments

hi @Master811129
this is a setting in Clangd format that defaults to such behaviour

the Java IDE does not use ClangD for formatting.
I'm sure this can be tuned in the future, because everyone likes their style.
Arduino sketches are formatted according to a very specific set of rules in Astyle, so I guess that this behaviour will have to be tuned to reflect the one in the Java IDE.
Let's check wtih @per1234 and see what he has to say

after auto-fomating in Arduino Pro IDE. It changes the braces position (but legacy IDE doesn't):

Yes, this is a reasonable request. However, we have to figure out how users can/will customize it.
Let's investigate the BraceWrappingFlags options from here. Here is an online clangd formatter with preview.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

j-rieck picture j-rieck  路  5Comments

IMSHOX picture IMSHOX  路  6Comments

ubidefeo picture ubidefeo  路  4Comments

DoodlesEpic picture DoodlesEpic  路  4Comments

joysfera picture joysfera  路  3Comments