Home >Development Tools >VSCode >VSCode Chinese comment garbled problem
This article will introduce to you the problem of garbled Chinese comments in VSCode. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.
Related recommendations: "vscode Basic Tutorial"
"files.encoding":"utf8"
Before the problem is solved, there is aFor more programming-related knowledge, please visit:suggestion that can be said:
Because this problem comes down to the final analysis It is a coding problem, that is, Chinese, so a better solution is to use English when commenting. This can not only improve your English level, but also avoid various coding problems and focus more on the code.
VSCode has two setting methods, namely mouse operation and modifying the configuration file.You can choose one of the methods to modify
Entrance:English version: file->preferences->settingsChinese version: File (in the upper left corner)->Preferences->SettingsYou can see the top There is a search box—Mouse operationYou can enter "encoding" in the search box. When you see file encoding, you can select utf-8, as follows:
—Modify the configuration fileEnter "setting.json" in the search box and click on the first option to enter, as follows: Then, add a statement in the last line
Introduction to Programming ! !
The above is the detailed content of VSCode Chinese comment garbled problem. For more information, please follow other related articles on the PHP Chinese website!