How to edit all lines in Visual Studio Code

后端 未结 7 1483
余生分开走
余生分开走 2020-12-23 12:20

I have a list of data to which I need to put a \' symbol at the start of the line and at the end of the line. So the original data looks like this:



        
7条回答
  •  长情又很酷
    2020-12-23 12:54

    You can use the Alt + Shift shortcut.

    1. First press Alt + Shift then click the mouse button on the first line.

    2. Go to the last line, and then do the same.

    This will mark all the parts of one side. Whatever you type will be reflected in the marked spaces.

    Do the same on the other side too.

提交回复
热议问题