Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to highlight the file I'm currently working on in the vscode explorer sidebar?

I have a lot of files in my root folder, and I'd like to be able to easily pinpoint where the current file is located in the VScode Explorer sidebar.

The "File: Reveal Active File in Side Bar" command is almost what I need: it opens the Explorer sidebar and highlights the current root folder with a blue box. However, the entire root folder is highlighted, not the specific file, so I still have to hunt for it amid all the other subdirectories and files in that tree.

Is there a command or set of commands I could use to achieve this? Alternately, is there a setting I could change that keeps the active file highlighted in the sidebar all the time? I'd just like some sort of indicator to see exactly where in the tree my active file is located.

like image 559
infinite-soup Avatar asked Oct 25 '25 12:10

infinite-soup


1 Answers

add in settings.json

"workbench.colorCustomizations": {
    "list.inactiveSelectionBackground": "#fffb17",
}

reference: https://code.visualstudio.com/api/references/theme-color

like image 84
Yelsiño Caso Alanya Avatar answered Oct 27 '25 05:10

Yelsiño Caso Alanya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!