-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
Auto encoding file - magic words in file #145310
Comments
Prior: #36230 |
This comment was marked as abuse.
This comment was marked as abuse.
Two examples how difficult this might become:
I'm using
Many XML files already have an explicit character encoding documented in them. So it should be preferred to read otherwise already available pieces of information and especially support for XML has been asked for some years ago already. In my opinion, the focus should be on supporting |
🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
Issue Type: Feature Request
Can you enter the auto detect encoding file using a "magic word" in file,
e.g. at the beginning in the comment I write "VSCODE.ENCODING=cp852"
batch
REM VSCODE.ENCODING=cp852
ECHO ...
...
javascript
// VSCODE.ENCODING=windows1250
def Func() ...
...
SQL
-- VSCODE.ENCODING=utf8
SELECT ...
XML
<-- VSCODE.ENCODING=cp437 -->
...
VS Code version: Code 1.65.2 (c722ca6, 2022-03-10T14:33:55.248Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
The text was updated successfully, but these errors were encountered: