comment hotkey and auto formatter conflict
- Dominant language
- Java
- Stars
- 14.6k
- Forks
- 7k
- PR merge metrics
- No merged PRs in 30d
Description
The hotkey ctrl+/ comments out a line of code.
The slashes (//) are put all the way in the front like
`____code`
`\\____some code`
`____other code`
_ are spaces
But the auto formatter is thinking that there aren’t any spaces there so it puts the spaces in front of the slashes (//)
`____code`
`____\\____some code`
`____other code`
_ are spaces
And if you un comment it than it only removes the slashes (//) and so there are too many spaces
Contributor guide
Research direction
No source file or test is named. First reproduce the conflict in the Arduino IDE 1.x editor using Ctrl+/ and auto-formatting; done means commenting preserves indentation and uncommenting restores the original layout without extra spaces.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100