Skip to content

Support setting encoding per file #237828

@awvalenti

Description

@awvalenti

files.encoding allows setting encoding user-wide or workspace-wide. Sometimes we need to set different encodings for specific files. I'd like something like:

{
  "files.encoding": "iso88591",
  "file-specific": {
    "/src/my-file.md": {
      "files.encoding": "utf8"
    }
  }
}

(EDITED: adding the missing second files.encoding part)

Actual situation: my project uses iso88591. I'm using marp and need to save only that markdown file in utf8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalityfile-encodingFile encoding type issues

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions