You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow users to define their own indentation rules within the settings #209805
This feature request derives from #43244 (comment). In that thread, some users have been mentioning they wanted to undo some changes that were made to language configuration files. To help them, we could allow them to edit the indentation rules directly within the settings files.
Reacted by RedCMD, Stephen Sigwart, Léo Debonnet, Matei Tudose, FlowIT-JIT, Richard Davey, Rok Breulj and Dennis Tsar
After discussing with the team, we have come to the conclusion that we do not want to pass on the complexity of the indentation rules to the end user. The indentation rules are quite complicated and if not well thought out by the user, they could cause indentation issues. For now we will not add support for setting overriding, however interested users can create extensions which provide their own language configuration files.
Aiday Marlen Kyzy (@aiday-mar) This is absolutely unacceptable. The changes in 1.88.x+ broke the editing experience. Literally broke it. We constantly have to fix broken code now. See #209802
And the new behaviour doesn't align with the explaination in settings:
"The editor will keep the current line's indentation"
How 1.88 was accepted as a stable version ready for release is beyond me.
EDIT: Switching to the "Advanced" option actually seems to solve some of the problems introduced in 1.88. I will be testing that.
Hi FlowIT-JIT thank you for expressing your concern, I will look into unindenting the line when a bracket is typed on an indented line after a braceless if/for/while statement.
if the indentation implementation is too complex for mere mortal developers, then at least give us a few options to choose. Forcing us to all use the same indentation style is such regression compared to code editors dating back to even 1999 (here I'm thinking of VC6). Jetbrains may offer too many options, but the VS code solution of "keep" or accept what we tell you is good style is very ill mannered.
Activity
aiday-mar commentedon Apr 8, 2024
After discussing with the team, we have come to the conclusion that we do not want to pass on the complexity of the indentation rules to the end user. The indentation rules are quite complicated and if not well thought out by the user, they could cause indentation issues. For now we will not add support for setting overriding, however interested users can create extensions which provide their own language configuration files.
FlowIT-JIT commentedon May 6, 2024
Aiday Marlen Kyzy (@aiday-mar) This is absolutely unacceptable. The changes in 1.88.x+ broke the editing experience. Literally broke it. We constantly have to fix broken code now. See #209802
And the new behaviour doesn't align with the explaination in settings:
"The editor will keep the current line's indentation"
How 1.88 was accepted as a stable version ready for release is beyond me.
EDIT: Switching to the "Advanced" option actually seems to solve some of the problems introduced in 1.88. I will be testing that.
aiday-mar commentedon May 13, 2024
Hi FlowIT-JIT thank you for expressing your concern, I will look into unindenting the line when a bracket is typed on an indented line after a braceless if/for/while statement.
alanbork commentedon May 22, 2025
if the indentation implementation is too complex for mere mortal developers, then at least give us a few options to choose. Forcing us to all use the same indentation style is such regression compared to code editors dating back to even 1999 (here I'm thinking of VC6). Jetbrains may offer too many options, but the VS code solution of "keep" or accept what we tell you is good style is very ill mannered.