I have a dist folder that I want to build locally and put it on Heroku every time during development. But I want VS Code to stop tracking files in the folder, for example during a search
Asked
Active
Viewed 5,562 times
2 Answers
2
A possible duplicate of https://stackoverflow.com/a/33277809/13378612
You can exclude the dist folder in your workspace using files.exclude. (Of course this does not prevent git to track the changes in dist.)

kampmani
- 680
- 5
- 13
-
I'd appreciate any comments regarding the quality of my answer in order to avoid down voting in the future. – kampmani May 11 '20 at 14:46
-
Actually your comment was more helpful, thank you! Unfortunately I don't have rights to vote yet. – Dvdgld May 16 '20 at 18:29
-
Now I can, fixed id :) – Dvdgld May 17 '20 at 06:02
1
I feel like you are mixing git with your IDE: say your project folder was not tracked via Git, then you would not have a .gitignore file to edit.
I found this very nice guide by Donovan Brown to achieve what you ask. I'll post the relevant steps:
- in Preferences > Open Workspace Settings
- search for
files.exclude
in the yaml - add pairs
<URL>:<bool>
, if bool is true the file is ignored

Daemon Painter
- 3,208
- 3
- 29
- 44