Skip to content

Persist character encoding of open files across restart #10444

Closed

Description

@bruceiv
  • VSCode Version: 1.4.0
  • OS Version: Ubuntu 12.04

Steps to Reproduce:

  1. Open a file.
  2. Re-open the file using a non-default encoding (e.g. Windows 1252).
  3. Close VS Code.
  4. Re-open VS Code; layout of editor, open files, etc. will be persisted, character encoding will not be.

Expected behaviour:
Once I have explicitly re-opened a file in a different encoding, that encoding should be persisted along with the other session state (note that I am not asking for encoding auto-detection here, just that I don't have to manually specify it for the same open file every time I restart VS Code).

Activity

  1. added
    feature-request
    file-explorer
    on Aug 12, 2016
  2. bpasero commented on Dec 19, 2016

    @bpasero
    Contributor
    • To verify:
      Pushed a change to persist and restore encodings configured for any opened editor. Once an editor is closed and opened again the encoding will be picked again from the files.encoding setting. The only exception are when using UTF-8, UTF-16 LE and UTF-16 BE with a BOM where we can auto-detect the encoding.
  3. added
    verification-needed
    on Dec 19, 2016
  4. added
    verified
    on Jan 25, 2017
  5. locked and limited conversation to collaborators on Nov 18, 2017
  6. added a commit that references this issue on Sep 6, 2026
    a6d870e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestfile-explorerverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions