Skip to content

Instantly share code, notes, and snippets.

@Mashpoe
Created April 21, 2023 08:34
Show Gist options
  • Save Mashpoe/5f8de191553a53fd8205dbd6f0ccc058 to your computer and use it in GitHub Desktop.
Save Mashpoe/5f8de191553a53fd8205dbd6f0ccc058 to your computer and use it in GitHub Desktop.
File Explorer include folder filter query
NOT ext:.h AND NOT kind:folders
@Mashpoe
Copy link
Author

Mashpoe commented Apr 21, 2023

You can enter this query into a Windows File Explorer window in order to recursively find everything within a folder that isn't a header file. You can then clear out the unnecessary files with CTRL+A and DELETE. This is useful for cleaning up include folders for C and C++ projects.

@Mashpoe
Copy link
Author

Mashpoe commented Nov 29, 2023

It doesn't seem like the search is fully recursive; you might have to double-check each subdirectory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment