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

Missing auto indenting inside of switch blocks #156

Comments

@mattscheffer
Copy link

VSCode Version: 0.10.11
OS Version: OSX, Win10

Scenario 1:
Create a switch statement:
image
Create a new line above default:
Inside that line type case 0:
Hit enter

Expected (normal VS product behavior): The editor should auto indent after hitting enter
Actual: No indent occurs. See below
image

Scenario 2:
Create a switch statement. Use the same as how scenario 1 started.
Move the cursor to after the 'break;' Hit enter.
Cursor will be at the same Ch spot as the b in break.
Type case 0:

Expected (normal VS product behavior): The editor should auto un-indent case 0: after typing the colon
Actual: No indent occurs. Looks like the following:
image

@mattscheffer
Copy link
Author

Sorry about the large code pictures. Appears they greatly expand when the pictures are pasted on a Mac

@v-codeel
Copy link

v-codeel commented Apr 7, 2016

This isn't limited to switch statements. If statements, for example have the same issue.

image

@rchande
Copy link

rchande commented Nov 30, 2017

@akshita31 Can you see if this still repros?

@akshita31
Copy link
Contributor

Yes it does reproduce. Will look into this.

@rchande
Copy link

rchande commented Jun 8, 2018

@akshita31 Did we fix this?

@akshita31
Copy link
Contributor

Not yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment