Skip to content

Conversation

@aiday-mar
Copy link
Contributor

@aiday-mar aiday-mar commented Mar 21, 2024

In relation to #43244

Currently when you press Enter in the following code where | indicates the cursor position:

if (true) |

This does the following indentation:

if (true)
|

We would expect the following indentation to be done:

if (true)
    |

This PR aims to address this.

Screen.Recording.2024-03-21.at.11.22.52.mov

@aiday-mar aiday-mar self-assigned this Mar 21, 2024
@aiday-mar aiday-mar changed the title Adding pattern for indenting after if/for/while statement with no braces Indent next line for if/for/while statement followed by no brace Mar 21, 2024
@aiday-mar aiday-mar changed the title Indent next line for if/for/while statement followed by no brace Indent next line for if/for/while statement followed by whitespace Mar 21, 2024
@aiday-mar aiday-mar requested a review from hediet March 21, 2024 16:41
@aiday-mar aiday-mar marked this pull request as ready for review March 21, 2024 16:41
@vscodenpa vscodenpa added this to the March 2024 milestone Mar 21, 2024
@aiday-mar aiday-mar enabled auto-merge March 21, 2024 17:02
@aiday-mar aiday-mar merged commit a00f2e6 into main Mar 22, 2024
@aiday-mar aiday-mar deleted the aiday/addingIndentationForIfForWhile branch March 22, 2024 10:07
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants