ncsaba/idea-openscad

The cursor always goes to beginning of line rather than the indentation of the line above it

mjparme opened this issue · 3 comments

It would be very nice if when you hit enter the cursor would automatically move to the same level of indentation as the line above it. This is normal behavior of IntelliJ but doesn't seem to happen when editing .scad files so it must be something the openscad plugin would need to support explicitly.

Here I would expect the cursor to be aligned with the rotate, but it is aligned with beginning of line:

Screen Shot 2021-08-14 at 11 56 13 AM

It should work. When I test your snippet, the cursor is indeed aligned with the rotate. I will need more detail to reproduce it.

I am migrating the project. Can you recreate a new issue in https://github.com/ldenisey/idea-openscad with more details : OS, plateform and version, version of the plugin and full text snippet ?

@ldenisey I have the plugin from your repo running locally, I will test this one and open an issue in the new repo if it doesn't appear fixed.

@ldenisey I tested this with your fork and it works correctly now.