Wednesday, May 1, 2019

Change the encoding of a file in Visual Studio Code

Apart from the settings explained in the answer by @DarkNeuron:



"files.encoding": "any encoding"


you can also specify settings for a specific language like so:



"[language id]": {
"files.encoding": "any encoding"

}


For example, I use this when I need to edit PowerShell files previously created with ISE (which are created in ANSI format):



"[powershell]": {
"files.encoding": "windows1252"
}



You can get a list of identifiers of well-known languages here.

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...