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

Auto indentation rules #4327

Open
kalvinpearce opened this issue Jan 3, 2021 · 0 comments
Open

Auto indentation rules #4327

kalvinpearce opened this issue Jan 3, 2021 · 0 comments

Comments

@kalvinpearce
Copy link

C# indentation rules are missing from this extention so action based formatting will not work, see example below.

This has been brought up in a couple of other language extentions (python, c++) and is a little niche but would be really cool to get this working in this extention as some other extentions rely on this method for formatting e.g. VSCode/Vim

Steps to reproduce

Map a key to editor.action.reindentselectedlines
Put cursor inside a function on a line with an incorrectly line like this
image
Execute the key/action for editor.action.reindentselectedlines

Expected behavior

The line should be formatted and indented correctly inside the function like this
image

Actual behavior

The line remains in the same place as VSCode does not know the correctly indenting rules for the language
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants