Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support auto detect of file encoding #17109

Closed
mohusheng opened this issue Dec 13, 2016 · 4 comments
Closed

Support auto detect of file encoding #17109

mohusheng opened this issue Dec 13, 2016 · 4 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality

Comments

@mohusheng
Copy link

  • VSCode Version: 1.7.2
  • OS Version: 6.1.7601
@kieferrm kieferrm added the info-needed Issue requires more information from poster label Dec 13, 2016
@mohusheng
Copy link
Author

My project mix gbk and utf8 encoding files, so it need support ["files.encoding": "auto"], no just ["files.encoding": "utf8"] or ["files.encoding": "gbk"].

@kieferrm kieferrm changed the title Unsupported auto dectect the gbk and utf8 encoding Support auto detect of file encoding Dec 14, 2016
@kieferrm
Copy link
Member

One alternative would be that we remember the encoding a file has been opened before. I.e. when the user chooses Change File Encoding > Reopen with Encoding from the command palette we use the same encoding when the file is opened again.

@kieferrm kieferrm added workbench feature-request Request for new features or functionality and removed info-needed Issue requires more information from poster labels Dec 14, 2016
@bpasero bpasero removed their assignment Dec 15, 2016
@visitantz
Copy link

Support this request, it's indeed annoying, usually web related files are utf-8 encoding, windows platform files are local encoding, so "files.encoding" setting is not helping at all, you still need to manually set half files each time.

@bpasero
Copy link
Member

bpasero commented Dec 18, 2016

#5388

@bpasero bpasero closed this as completed Dec 18, 2016
@bpasero bpasero added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 18, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants