如何查看VS Code集成终端当前主题的配色以同步至标准终端?
How to View Your VS Code Integrated Terminal's Color Scheme
Got it, let's walk through exactly how to check the color palette your VS Code integrated terminal is using—so you can match it to your standard terminal setup. No guesswork or unnecessary config edits needed:
Use the Inspector Tool for Real-Time Color Values
- Open the Command Palette with
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac). - Search for and run the command
Developer: Inspect Editor Tokens and Scopes. - Click any text in your integrated terminal (a command, output line, error message—anything). A side panel will pop up showing detailed info about that text's styling, including the exact hex color codes for its
foregroundandbackground. This is perfect for grabbing specific syntax highlight colors (like for paths, success messages, or errors).
- Open the Command Palette with
Check the Terminal Color Customization Settings
- Open VS Code's Settings (press
Ctrl+,orCmd+,). - Search for
Terminal > Integrated: Color Customizations. - Click
Edit in settings.jsonto see the full list of terminal color variables (liketerminal.background,terminal.foreground,terminal.ansiRed, etc.). Each variable will show the hex color your current theme uses for that terminal element. If some variables are missing, that means your theme is using its default values for those elements—use the inspector tool above to grab those instead.
- Open VS Code's Settings (press
This way you'll get all the exact color codes you need to replicate your VS Code terminal's look in your standard terminal app.
内容的提问来源于stack exchange,提问作者Николай Параскива
相关产品推荐
相关产品推荐

