How to edit all lines in Visual Studio Code

后端 未结 7 1454
余生分开走
余生分开走 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:32

    Here is an easy way to do this:

    1. Ctrl+A to select all or select your desired text.

    2. Shift+Alt+I to put a cursor at the end of each line.

    3. Type your ' (or whatever you want at the end).

    4. Home will move all your cursors to the beginning of the lines.

    5. Type your ' (or whatever you want at the beginning of all the lines).

提交回复
热议问题