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

Improve block indentation behavior for C# #119

Closed
wants to merge 1 commit into from

Conversation

guusw
Copy link

@guusw guusw commented Apr 12, 2017

This allows automatic indentation changes when someone enters a character. And in implementation for the CSharpIndentationStrategy that will reduce the indentation when a { or } character is entered

This is pretty similar to visual studio where it reduces the indentation as soon as you type { after any class/function declaration or control flow statement

@dgrunwald
Copy link
Member

Adding a new method to an interface is a breaking change; we can't accept this into AvalonEdit 5.x.

Also, I'm not sure if yet another kind of change notification is the right way to go -- we might be able to do this more generically by hooking into one of the existing events.

@guusw
Copy link
Author

guusw commented May 26, 2017

Allright, I'll check again if it can possibly be done by IndentLine(s). These are the existing events you meant, right?

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

Successfully merging this pull request may close these issues.

3 participants