Indentation of a blank line
- Dominant language
- Java
- Stars
- 14.6k
- Forks
- 7k
- PR merge metrics
- No merged PRs in 30d
Description
Dear all,
I searched the open issues and couldn't find an existing issue. Apologies in advance if there is already an issue about it.
In the IDE, when you are indented and you press return twice to insert a blank line, that blank line is not indented. This doesn't only look weird when you move your cursor, this is also pretty annoying if you made a blank line to insert a piece of code / to start coding there. Now you have to manually indent it again. I think this is one of the reasons the indentation of code from newbies is so mangled.
I tested it in some versions of the IDE (but I don't have all) and in 1.6.4 it still worked correct (aka, blank line is indented) but at least from 1.6.12 and up it mangles the indentation. Like I said, I find it annoying but more important, it really doesn't help for newbies to create nice indented code...
Contributor guide
Research direction
No source file or test is named. First reproduce the behavior in the Arduino IDE, comparing the reported 1.6.4 and 1.6.12-or-newer versions; done means pressing Return twice while indented leaves the blank line indented for continued editing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100