Visual Studio (Go to All) - How to ignore bin and obj folders
Asked Answered
F

1

6

I want Go to All (Ctrl + ,) to ignore bin and obj folders, or at least ignore .g.* files. Can I do either or both?

Here is a picture of a basic UWP app without source control. bin and obj folders are excluded from the Solution, however, .g files from the generated directories are still included in search with Go to All.

enter image description here

Freiburg answered 1/7, 2021 at 15:30 Comment(1)
I have a similar need, but for a Blazor project. I never want to see .g.cs files in Go To All; is there any way to filter them out?Prune
H
1

Filter by the Files button (or keyboard chord Ctrl-1,Ctrl-F)

enter image description here

Holocaust answered 28/2, 2022 at 16:17 Comment(3)
Ah, that does what I need, thanks. I'll remap the shortcut to something more convenient.Freiburg
@PatrickSzalapski in case you missed it.Stacte
Not quite right...I still want to "go to files or types or members" like the default search, just without the types in g.cs files.Prune

© 2022 - 2024 — McMap. All rights reserved.