-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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 setting encoding per file #237828
Comments
I think there should rather be general support to scope a setting to a resource. Related #35350 |
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
OP: I assume you are aware you can reopen the file with different encoding in the VSC and then it somehow does remember the specific encoding for that particular file as far as I can tell. But I'm unable to tell where that setting is stored, doesn't modify any of the settings.json files, so it must be elsewhere? So your issue is asking to move this into settings? (asking just to clarify it to myself - confused user of VSC, nothing more significant, sry :) ) I do see some value in having this pre-set in git repo file, so any newly cloned repo will behave correctly without manually reopening the file. |
I'm the author of Marp it mentioned at here. The original issue was recieved at marp-team/marp#558, as an possibility issue report for the Marp for VS Code extension. If VS Code extensions can access to the current encoding for each text editor, the original issue by the reporter would be solved because the extension can do proper conditional branching by the selected character set. So if provided a solution against the long-standing issue #824, this proposal might not be needed from the standpoint of reporter. (e.g. PR #177434) Our extension might implement heuristic based on the current Similar?: #209503, microsoft/vscode-cpptools#13047 |
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:(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.
The text was updated successfully, but these errors were encountered: