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 indentation when pressing enter after a '{' #119

Closed
jeremyfa opened this issue Feb 12, 2015 · 3 comments
Closed

Missing indentation when pressing enter after a '{' #119

jeremyfa opened this issue Feb 12, 2015 · 3 comments
Labels

Comments

@jeremyfa
Copy link
Contributor

Hi, first of all, thanks for this great plugin. It is so far the best way to work with Haxe on Mac !

I have however a problem with indentation. It may seem like a minor problem, but can be pretty annoying with time:

When pressing enter after writing some condition, function, while loop, with an opening brace, I would expect to have an additional indentation (like any other intellij plugin, or even most of the code editors). But instead, the next line is not indented by one more tab, and each time I have to type de tab myself.

Some illustation:

Expected when pressing enter to move to the next line:

if (someCondition) {
    | // <- text cursor indented

Current behavior:

if (someCondition) {
| // <- text cursor not indented

I don't know if this change is difficult to achieve, but fixing this problem will, in my opinion, really improve the coding experience.

I am using the latest plugin build from the ClassHierarchy branch on Mac OS X (I also experience the issue on the Intellij repository's plugin).

@EBatTiVo EBatTiVo added the bug label Feb 12, 2015
@EBatTiVo
Copy link
Contributor

Verified using IDEA13 on ClassHierarchy branch.

@jeremyfa
Copy link
Contributor Author

I didn't tested because I don't have the environment to rebuild the plugin, but I still did a pull request: #120

EBatTiVo added a commit that referenced this issue Feb 13, 2015
Indent code of blocks surrounded with curly braces (fix #119)
@EBatTiVo
Copy link
Contributor

Fixed. Merged two pull requests (#120 #126). I think this is fixed on the ClassHierarchy branch. Please re-open if you disagree.

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

No branches or pull requests

2 participants