Home > Article > Development Tools > Why does vscode settings Chinese restart?
The failure of VSCode Chinese settings after restarting is mainly caused by two reasons: conflict with other extensions, which can be solved by disabling or uninstalling the conflicting extensions. The user profile is damaged, which can be solved by backing up the user profile, deleting the damaged file, and restarting VSCode.
Why do VSCode Chinese settings fail after restarting?
The problem that VSCode Chinese settings fail after restarting is mainly caused by the following two reasons:
1. Conflict with other extensions
Someone Some extensions may modify the language settings of VSCode, causing the Chinese settings to become invalid. To resolve this issue, disable or uninstall the conflicting extension.
2. User configuration file is damaged
VSCode stores user settings in the user configuration file. If this configuration file is damaged, Chinese settings may be lost. To resolve this issue, you can try the following steps:
Step 1: Back up user profile
Ctrl
Shift
P
Open the command panel. Preferences: Open Settings (JSON)
. settings.json
file, right-click and select "Copy to Clipboard". Step 2: Delete User Profile
Open File Explorer and navigate to the VSCode user profile directory:
%APPDATA%\Code\User
~/Library/Application Support/Code/User
~/.config/Code/User
Delete the following files:
settings .json
keybindings.json
snippets
FolderStep 3: Restart VSCode
After restarting VSCode, VSCode will re-create the user profile. At this point, the Chinese settings should work normally.
The above is the detailed content of Why does vscode settings Chinese restart?. For more information, please follow other related articles on the PHP Chinese website!