Mac版Visual Studio Code语言切换失败求助:无法切换至英文
Fixing VS Code Russian to English Switch When Standard Methods Fail
Hey there, I’ve dealt with frustrating VS Code locale issues before, so let me walk you through some reliable workarounds that should help you switch to English when the usual options are missing:
1. Manually Edit the settings.json File
Sometimes the UI hides the locale setting, so we can set it directly in the config file:
- Open VS Code and press
Ctrl + Shift + P(Windows/Linux) orCmd + Shift + P(Mac) to open the command palette. - Type
Preferences: Open Settings (JSON)and hit Enter to open the raw settings file. - Add or modify this line in the JSON object:
"locale": "en-us" - Save the file and restart VS Code. It should boot up in English now.
2. Force English via Launch Arguments
If editing settings doesn’t work, we can tell VS Code to use English directly when starting it:
Windows
- Right-click your VS Code shortcut and select Properties.
- In the Target field, add
--locale=en-US(make sure there’s a space before the double hyphen) at the end. For example:"C:\Users\YourUsername\AppData\Local\Programs\Microsoft VS Code\Code.exe" --locale=en-US - Click OK and restart VS Code using the modified shortcut.
Mac
- Open Terminal and run this command to launch VS Code in English:
open -a "Visual Studio Code" --args --locale=en-US - To make this permanent, you can create a custom alias in your shell config or modify the app’s launch properties via Automator.
Linux
- Launch VS Code from the terminal with this command:
code --locale=en-US - To make this permanent, edit your VS Code desktop shortcut’s
Execline to include--locale=en-US.
3. Remove Conflicting Language Extensions
Occasionally, third-party Russian language packs can override the default locale:
- Open the Extensions panel with
Ctrl + Shift + X. - Search for "Russian" or any Russian-language related extensions and uninstall them.
- Restart VS Code to see if the locale switches to English.
Last Resort: Clean Reinstall
If none of the above work, try a clean reinstall:
- Uninstall VS Code from your system.
- Delete the residual config folders:
- Windows:
%APPDATA%\Code - Mac:
~/Library/Application Support/Code - Linux:
~/.config/Code
- Windows:
- Download the English version of VS Code and reinstall it.
内容的提问来源于stack exchange,提问作者Abel Aganbegyan
相关产品推荐
相关产品推荐

