arduino / arduino/Arduino

Autoformat ignores tabsize preference

Open
#5,012 2 comments 1 reaction 0 assignees View on GitHub
Component: IDE user interface Type: Bug
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

I have `editor.tabs.size=4` in my preferences.txt which works fine if I hit but the autoformatter (cmd+T on OSX) ignores this setting and uses 2 spaces instead.

Verified this bug on both 1.6.8 and 1.6.9

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Arduino IDE 1.x on OSX with editor.tabs.size=4, then invoke autoformat with cmd+T and compare it with inserting a tab. Trace the autoformatter and preference handling; done means autoformat uses the configured tab size rather than always producing two spaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop-dev, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.