Home > Article > Development Tools > How to configure vscode to automatically identify file encoding? [Detailed picture and text]
vscodeWhat should I do if I open a file with garbled characters? This article will introduce to you the method to solve the garbled code - configure vscode so that it can automatically identify the file encoding. I hope it will be helpful to you!
Our vscode open files are utf-8 encoded by default. When we open other encoding files (such as gb2312), garbled characters will occur. [Recommended learning: "vscode introductory tutorial"]
At this time we hope to see the normal code, click UTF-8# in the lower right corner
## A window will pop up above, we click [Reopen with encoding] and it will display normally But the problem is not solved. When we open this file next time, it will still be garbled. This is because our editor does not automatically recognize the encoding of the file, and it will still use UTF-8 to open it next time.
vscode tutorial!
The above is the detailed content of How to configure vscode to automatically identify file encoding? [Detailed picture and text]. For more information, please follow other related articles on the PHP Chinese website!