ncsaba / idea-openscad

OpenSCAD language plugin for the IntelliJ platform.
Apache License 2.0
28 stars 10 forks source link

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

Closed mjparme closed 2 years ago

mjparme commented 3 years ago

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
ldenisey commented 2 years ago

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 ?

mjparme commented 2 years ago

@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.

mjparme commented 2 years ago

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