Skip to content

Please don't "steal" the .html extension #2

@marcvangend

Description

@marcvangend

Hi, thanks for contributing your plugin.

I just spent 15 minutes figuring out why suddenly HTML formatting was broken (wrong amount of indent spaces, no automatic white lines, etc.) in PhpStorm. As it turned out, installing the svelte plugin had "stolen" the .html extension. Under Settings > Editor > File Types, the .html extension had been moved to 'Svelte Html Components'. That means that the formatting settings under Settings > Editor > Code Style > HTML no longer applied to HTML documents (PhpStorm was using the settings for 'Other File Types' instead).

AFAIC this should not be the default behavior, as it is unexpected and hard to debug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions