Hold down the ctrl p key and enter the following command in the search option box
ext install gbktoutf8
Click press Enter in the picture above to search for "gbktoutf8" in the marketplace, there is the picture below, click install to install
Open the code and check the Chinese comments. You can find that the garbled characters disappear and the Chinese comments are normal. show.
Recommended related articles and tutorials: vscode tutorial
The above is the detailed content of vscode Chinese comments garbled characters. For more information, please follow other related articles on the PHP Chinese website!