arduino / arduino/Arduino

comment hotkey and auto formatter conflict

Open
#4,587 0 comments 0 reactions 0 assignees View on GitHub
Component: IDE Type: Bug
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.