Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio code, exclude directory from "go to file" option (ctrl + p)

I am using vscode, and I would like to exclude some directories (with webpack bundles) from 'go to file' option in vscode.

I tried to exclude them by "search.exclude" and "files.exclude". That worked in files tree and in search, but I still can find these files by 'go to file'.

Do you know how to do this?

like image 545
Artur Słomowski Avatar asked Feb 06 '17 11:02

Artur Słomowski


1 Answers

Version 1.44:

now we have an option in the settings.

If you tipe "Goto file" in the setting search bar, the editor opens up a Search:Exclude section, and you can add a folder or files.

enter image description here

like image 129
Fjordo Avatar answered Oct 04 '22 19:10

Fjordo