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

Minor identation annoyance #24

Open
ghost opened this issue Jan 31, 2016 · 1 comment
Open

Minor identation annoyance #24

ghost opened this issue Jan 31, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 31, 2016

I noticed a minor annoyance with the indenting code. The easiest way to reproduce the issue, is to delete all the code in a new shader and then type in:

void main( void ) {
float r = 0.2;
}

When typing the above code, the code indentation becomes:

void main( void ) {
  float r = 0.2;
  }

Instead of:

void main( void ) {
  float r = 0.2;
}

I had a look with the debugger https://github.com/markusfisch/ShaderEditor/blob/master/ShaderEditor/src/main/java/de/markusfisch/android/shadereditor/widget/ShaderEditor.java but couldn't really understand what was going on.

@markusfisch
Copy link
Owner

Thanks for reporting. Unfortunately, that feature is missing at the moment. Currently, auto-indenting just means adding indent, but not removing it.

Put it on the list.

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

1 participant