-
Notifications
You must be signed in to change notification settings - Fork 100
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 indentation in some cases when pressing Enter #492
Comments
(For case 2) Actually, how it should look depends upon your language preference settings. However, I believe that none of those settings match the results you are seeing. I thought @as3boyan fixed this, but maybe we never pulled it because it only worked in v15 and higher, whereas we were hoping to find a v14 solution as well. |
Thanks for your reply. |
@EBatTiVo yes, you were right. I have made a fix for case 1, but it only works in v15 and higher. |
@winmain And to confound things further... the unit tests for re-alignment work correctly in all versions. There is at least one other issue regarding this, and probably two or three. There might be some more info on those reports. |
I had to copy |
I don't mind back-porting changes like that. I definitely like to add a comment like: /* Lifted this file from <old_location> for <reason>. */ near the top of the file. I do a similar thing when I grab entire functions from another source repo. As long as the licensing terms match, we're good. |
Missing indentation in some cases when pressing Enter #492 (case 1 only)
Part 1 was fixed with commit 342b568. |
Case 1: Missing indentation in class body after var or function declaration
Should be
Case 2: Broken indentation for multiline comments
I typing
/**
pressing Enter and got this:
The second and third lines looks broken.
How it should look like:
Plugin version:
Pre-release candidate 0.10.1-RC1
Idea:
2016.2
The text was updated successfully, but these errors were encountered: