microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.63k stars 29.04k forks source link

Being able to set a specific encoding to an file extension #31775

Closed jens1o closed 7 years ago

jens1o commented 7 years ago

VSCode Version: Code - Insiders 1.15.0-insider (0e7546c978fa1b62dbf36f07a77d1b9a4241d6f7, 2017-07-28T11:23:06.089Z)

Extension Author (truncated) Version
Bookmarks ale 0.15.2
npm-intellisense chr 1.3.0
path-intellisense chr 1.4.2
regex chr 0.1.0
gitignore cod 0.5.0
vscode-dash dee 1.7.0
css-minify Die 0.0.4
vscode-npm-source dku 1.0.0
python don 0.6.9
gitlens eam 4.3.3
tslint eg2 0.17.0
vscode-npm-script eg2 0.2.0
LogFileHighlighter emi 1.1.1
vscode-reveal evi 0.0.9
php-debug fel 1.11.1
php-intellisense fel 1.5.0
auto-close-tag for 0.4.3
auto-rename-tag for 0.0.14
gc-excelviewer Gra 1.1.15
composer ika 0.5.0
smarty imp 0.2.0
code-guid jam 1.0.1
StretchTimer jpa 0.0.1
json-to-ts Mar 1.5.2
Runner mat 0.1.14
vscode-apache mrm 1.1.1
cpptools ms- 0.12.1
github-issues-prs ms- 0.3.1
php-docblocker nei 1.2.0
emoji Per 0.0.3
vscode-versionlens pfl 0.19.1
datetime rid 1.0.5
vscode-icons rob 7.12.0
sharecode Rol 0.4.1
todotasks san 0.5.0
code-settings-sync Sha 2.8.2
vscode-spotify shy 2.0.0
packagelinker sin 0.0.3
code-spell-checker str 1.3.2
pdf tom 0.2.0
lorem-ipsum Tyr 1.0.0
vscode-arduino vsc 0.2.4
vscode-todo-highlight way 0.5.8
highlight-trailing-white-spaces yba 0.0.2

(2 theme extensions excluded)


When I'm creating php files, I need to set the file encoding to UTF-8 with BOM to obey to the rules and make my code working properly, while vscode is using UTF-8 by default, and I need this encoding for any other file, except for php.

bpasero commented 7 years ago

https://github.com/Microsoft/vscode/issues/4891