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

后端 未结 15 1077
深忆病人
深忆病人 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条回答
  •  -上瘾入骨i
    2020-12-12 10:17

    I think these official guide should work for your case.

    VS Code allows you to quickly search over all files in the currently-opened folder. Press Ctrl+Shift+F and enter in your search term. Search results are grouped into files containing the search term, with an indication of the hits in each file and its location. Expand a file to see a preview of all of the hits within that file. Then single-click on one of the hits to view it in the editor.

提交回复
热议问题