Skip to content

Micro reindents settings.json files with spaces on open #3331

@pwhelan

Description

@pwhelan

Description of the problem or steps to reproduce

When opening JSON files, even with all possible ftoptions settings set to tabstospaces:false micro keeps reindenting then overwriting the settings file with spaces instead upon opening.

This does not happen with any other files, just settings.json, as far as I can tell.

This is my settings.json file:

{
    "*.json": {
        "tabstospaces": false
    },
    "colorscheme": "simple",
    "ft:json": {
        "tabstospaces": false
    },
    "ftoptions": false,
    "tabsize": 8
}

Specifications

Version: 2.0.13
Commit hash: 68d88b5
OS: macOS
Terminal: iTerm2 3.5.0
Compiled on June 06, 2024

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions