🐞 Default tab size is incorrect (set to 4 but is only 3), changing it does not work

Open
#357 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
swift
Domain
tooling

Research direction

Start at the Text Editing settings and trace how the tab-size value reaches the editor view; no specific files or tests are named in the issue. Reproduce the default and changed-size cases, including after restart, and consider the issue done when the editor uses the configured number of spaces consistently.

Written by the indexing model from the issue text.

Description

bug
Description

The default tab size is set to 4 in settings, but it is actually 3 in the editor window when counted against spaces. Changing the tab size in settings does not change the editor. A restart is also not honouring the changed tab size setting.

To Reproduce
  1. Go to settings->Text Editing
  2. Default tab size is set to 4 spaces and Prefer Indent is set to Tabs
  3. Close Settings.
  4. Type 4 spaces in the editor
  5. Type newline and a tab
  6. Notice that the tab only equals 3 spaces, not 4.
Expected Behavior

Tab size should be equal to the number of spaces set in settings, by default: 4 spaces not 3.

Version Information

CodeEdit: 0.3.6 (47)
macOS: 15.7.1
Xcode: Version 26.1.1 (17B100)

Additional Context

No response

Screenshots
Image Image

Changing tab size to some other value (here: 8) does not change the editor (also not after restart of CodeEdit):

Image
Dominant language
Swift
Stars
720
Forks
162
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CodeEditApp/CodeEditSourceEditor

All issues in CodeEditApp/CodeEditSourceEditor

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.