Skip to content

[Bug]: Inconsistent indent with Tab Key #537

Open
@manngo

Description

@manngo

Describe the bug

I have set up a Tab Size to 4. I note that pressing the tab key generates a genuine tab, which is what I prefer, so that’s fine.

However, if I highlight some code and indent, either with the tab key or cmd-] the code is indented with two spaces. Apart from not being what I asked for, it will create real problems with Python snippets.

To reproduce

  1. In Settings, set the tab size to 4.
  2. On an empty line press tab a few times. Note the tab size and the fact that the tab is a single character.
  3. Enter a few lines of code.
  4. Highlight the code and indent using, say, the tab key. Note that the indent is made with two spaces.

I’m using the Mac version, 3.12.

Version

3.12

OS

macOS 15.4

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions