简体   繁体   中英

vscode - change highlight color of current file

How can I add a custom style for the background of the opened file (the pale-grey behind fetch.js ):

在此处输入图像描述

I believe you are looking for the list.inactiveSelectionBackground theme setting. You can set this using workbench.colorCustomizations

"workbench.colorCustomizations": {
    "list.inactiveSelectionBackground": "#f0f"
}

在此处输入图片说明

This color used used when the explorer is not focused. Use list.activeSelectionBackground for when the explorer is focused

To highlight the current file tab on top -

Under Settings --> " workbench.colorCustomizations ", add some colors to the tab border and/or to the tab background:

"tab.activeBorder": "#ff0000",
"tab.unfocusedActiveBorder": "#000000",
"tab.activeBackground": "#4a4a75",
"tab.unfocusedactiveBackground": "#000000"

I think that you can find the solution to this problem right here:

Visual Studio - Current file in Solution Explorer - Make it darker?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM