Skip to content

Nondeterministic filetype detection (c, c++, objective-c) for *.h files #2041

@dmaluka

Description

@dmaluka

The filetype of *.h files is detected nondeterministically: sometimes it's c, sometimes objective-c, which results in slightly different highlighting.

To work around this, I force it to c++ in my settings.json, overriding automatic detection for *.h files, so I have the same highlighting each time:

    "*.h": {
        "filetype": "c++"
    },

Commit hash: de8f4bf
OS: any
Terminal: any

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