- Instant help with your Developer coding problems

Change file encoding in VS Code

Question:
How to change file encoding in VS Code?
Answer:
1. Click on encoding on the status bar.
2. Select 'Save with Encoding'
3. Select the required encoding from the list.
Description:

The default character set encoding to use when reading and writing files is UTF-8 in VS Code. You can change this setting for the selected file only, or globally for all files.

Change encoding for a file

  1. Click on the encoding in the status bar to reopen or save the active file with a different encoding.



  2. Select a new encoding from the list


Change encoding globally

You can change file encoding globally using the settings panel. 

  1. Open settings with CTRL + , or use the menu File -> Preferences -> Settings
  2. Search for file.encoding
  3. Select the new encoding from the list

    Change file encoding globally

 

Share "How to change file encoding in VS Code?"