Skip to content

Warn on conflict between .editorconfig and manually chosen indentation settings #329

@ab-pm

Description

@ab-pm

I just had an issue very similar to this one - every time I switched between files, the autodetected indentation settings would be overwritten by something that didn't fit to the style of the file, very annoying. Looking in the vscode settings I only found editor.detectIndentation = true. It took me some time until I figured out the editorconfig extension was responsible for this, and my .editorconfig was missing entries for this particular file type.

Would it be possible to hook into the "Select indentation" command (and also in the "Detect indentation from content" command), and emit a warning message if there is a .editorconfig file that resolves to a conflicting setting?

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