简体   繁体   中英

Visual Studio 2019 always search in all files (including the hidden files)

How can you search in Visual Studio (2019) only in the included (project) files?

I think it is a few months ago that this behavior changed. If I search for somthing I hit ctrl-F and type the search word. Clicking "Find All" would list all files that are also included in the projects/solution that has a hit... Now if I do the same I got more hits; because it is also including files that are in directories that are not included by the project/solution (like a DIST folder).

I did some research and it looks like the extended search (find in files / ctrl-shift-F) has an option called "Include external items". Looks like that option should do what it is now doing; however this option is switched off... What am i missing? has there been an update that changed this behavior; and should i change another setting if i want the old behavior? Are there other people that confirm this behavior change?

Microsoft Visual Studio Enterprise 2019 Version 16.11.2 在此处输入图片说明

in VS2019

Tools -> Options - > Project and Solutions -> VC++ Project Settings

then in right panel

add to "Extension to hide" all extensions in which VS are searching: for example ".obj" then OK

after refresh project in Soultion explorer and all files with this extensions will be hide after that ctrl + F with Find in Project and all will ok

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM