Choose folders to be ignored during search in VS Code

前端 未结 16 1078
既然无缘
既然无缘 2020-11-28 18:10

Right now when I use +O to search for files, the fuzzy matching appears to operate over all files in the current project. Unfortunately, this includes

16条回答
  •  庸人自扰
    2020-11-28 18:14

    I wanted to search for the term "Stripe" in all files except those within a plugin ("plugin" folder) or within the files ending in ".bak", ".bak2" or ".log" (this is within the wp-contents folder structure of a wordpress install).

    I just wanted to do this search one time and very quickly, so I didn't want to alter the search settings of my environment. Here's how I did it (note the double asteriks for the folder):

    • Search Term: Stripe
    • Include Files: {blank}
    • Exclude Files: *.bak*, *.log, **/plugins/**

    Here's what it looked like

提交回复
热议问题