First click File->Preferences->Settings, and then enter the user settings on the right:
"files.autoGuessEncoding": true,
As shown:
Save the configuration.
After adding this setting, VSCode will try to guess the character set encoding when opening the file.
Recommended tutorial: vscode tutorial
The above is the detailed content of How to convert file encoding format in vscode. For more information, please follow other related articles on the PHP Chinese website!