How do I find and replace all occurrences (in all files) in Visual Studio Code?

后端 未结 7 1924
轻奢々
轻奢々 2020-12-04 05:25

I can\'t figure out how to find and replace all occurrences of a word in different files using Visual Studio Code version 1.0.

I get the impression this should be po

相关标签:
7条回答
  • 2020-12-04 06:26

    Update for 2020

    If you are using the search feature to search across files (Ctrl + Shift + F) it can be easy to miss how to convert your search to a search and replace within the UI.

    Here's a typical search result:

    To convert this to a search and replace you need to click the arrow icon to the left of the search input field. This will open the replace options as seen below. Note the arrow icon is now pointed down.

    The keyboard shortcut Ctrl + Shift + H will also work as well to access the search and replace.

    Link to VSCode docs on search and replace: https://code.visualstudio.com/docs/editor/codebasics#_search-and-replace

    0 讨论(0)
提交回复
热议问题