Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In visual studio code: How can I exclude files from Quick Open but no from the explorer

I have a TypeScript project that I edit using Visual Studio Code, and I found that I can exclude files from Quick Open (cmd+P) by configuring files.exclude like this

"files.exclude": {
    "dist/**/*.js": true
}

This hides from me the compiled files when I use Quick Open which is what I want. The problem is that, this code also hides the file from the File Explorer.

Is there a setting that excludes the files from Quick Open and Search but still list them in the explorer? Ideally using a dim color indicating "private", like atom does.

like image 351
Hernan Rajchert Avatar asked Mar 14 '17 18:03

Hernan Rajchert


2 Answers

please try,

"search.exclude": {        
        "dist/**/*.js": true
    }
like image 163
user3439369 Avatar answered Nov 15 '22 09:11

user3439369


Open settings (cmd/ctrl + ,) and then search for "exclude" and press "Add Pattern"

exclude from quick open

like image 38
yusuf Avatar answered Nov 15 '22 08:11

yusuf