2

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

Dvdgld
  • 1,984
  • 2
  • 15
  • 41

2 Answers2

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
1

I feel like you are mixing 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:

  1. in Preferences > Open Workspace Settings
  2. search for files.exclude in the yaml
  3. add pairs <URL>:<bool>, if bool is true the file is ignored
Daemon Painter
  • 3,208
  • 3
  • 29
  • 44