View: Toggle Exclude .gitignore Files from Search
view.toggleSearchGitignore Skip files and folders matched by the project's .gitignore (target, node_modules, build, …) when searching.
How to run it
Open the command palette (M-x in the Emacs keymap) and search for View: Toggle Exclude .gitignore Files from Search, then press Enter. It has no default keybinding, but you can bind one in Settings → Keymaps.