Can I exclude folders form search with ctrl+, visual studio 2019?

Lord Wolfenstein 1 Reputation point
2020-09-05T21:20:32.007+00:00

I use Python with Visual Studio 2019. And the repo got a big requirements.txt that generates a env\ folder. When I hit "CTRL+," (CTRL and comma) to open the "Navigate To" box it searches everywhere in the project, including the env\ folder which is a problem.

Is there a way to exclude folders from this search?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,600 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,266 Reputation points Microsoft Vendor
    2020-09-07T02:43:15.56+00:00

    Hi LordWolfenstein,

    For your requirement, there are only two settings of this “Go to” commands which control the scope of searching. Please refer to this document Filter to a specific location and try to select and use “Current Document" button to search.

    22951-search.png

    22778-currentdocument.png

    Besides, I tried to reproduce your issue but didn’t see the newly generated env\ folder, could you share some reproduced steps with me for further check?

    Sincerely,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.