VS Code - Search for text in all files in a directory

后端 未结 15 1088
深忆病人
深忆病人 2020-12-12 09:32

Is there a way to search for text in all files in a directory using VS Code?

I.e., if I type \"find this\" in my search, it will search through all the files in the

15条回答
  •  天命终不由人
    2020-12-12 10:23

    You can do Edit, Find in Files (or Ctrl+Shift+F - default key binding, Cmd+Shift+F on MacOS) to search the Currently open Folder.

    There is an ellipsis on the dialog where you can include/exclude files, and options in the search box for matching case/word and using Regex.

提交回复
热议问题