Search code examples
visual-studio-code

Visual Studio Code search across files (find in files) is not working


I am using Visual Studio Code 1.31.1 in MacOS 10.13.6. I open VSCode, I open a folder of text files, and I press command-option-F, or use Edit -> Find in Files. I search for a string that I know for sure exists in multiple text files in the open folder, and it says it can't find it.

Searching across files works if I have the folder open and have each and every single file open as a tab, which is rather pointless. Is there a way to search across files without actually having them all open as tabs?

I think it was because I opened a folder on Google Drive File Stream. It works fine on local files.


Solution

  • Had the same issue on Mac, seems like it was related to Google Drive. once I moved the files on my local drive the search worked fine.