Find and replace in Visual Studio code

后端 未结 6 1821
不思量自难忘°
不思量自难忘° 2020-12-25 11:08

I have the following line in a file I\'m editing in VSCode:

...............111.........111.............111..

I want to replace all .

6条回答
  •  温柔的废话
    2020-12-25 11:39

    Since sometimes we might have similarly named things so you don't want to select everything, one of my favorites shortcut sequences is to select the next occurrence:

    1. Use shift and arrows to highlight the term you want to match.
    2. Use Ctrl + d to highlight the next occurrence of the term.

    The Basic Editing in VS Code documentation page has some extremely useful variations on find and replace. One extremely useful shortcut is the Column (Box) Selection.

提交回复
热议问题