Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vscode: set encoding for files with a specific extension [duplicate]

I'm working with visual studio code to edit classic asp pages.

In order not to break everything, I need .asp files to be read and written using Windows 1252 encoding.

Is there some way to configure it? if it could be done on a folder/project/workspace basis that would be great.

like image 200
opensas Avatar asked Sep 15 '25 23:09

opensas


1 Answers

See language-specific settings. so something like

 "[asp]": {
    "files.encoding": "windows1252"
  },

assuming asp is your language name, if not, put your language there.

If you want it for only a specific workspace put that into that workspace settings.

Command palette/"Open Workspace Settings"

like image 189
Mark Avatar answered Sep 19 '25 15:09

Mark