有没有一种方法可以在没有gitignore的情况下停止跟踪VS Code中的文件夹?

我有一个dist文件夹,我想在本地构建并在开发期间每次都将其放在Heroku上。但是我希望VS Code停止跟踪文件夹中的文件,例如在搜索过程中

评论
  • dsed
    dsed 回复

    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