Pasting data in multiple cursor mode

后端 未结 2 930
渐次进展
渐次进展 2020-12-16 21:27

in vs code I have the following file

1
2
3

a
b
c

Now I do the following steps

  1. cut the lines a b c.
  2. select the line
2条回答
  •  伪装坚强ぢ
    2020-12-16 21:46

    Check out Mark's good answer as well. There have been some updates to VS Code he mentions that should be considered as well.

    Using Shift+Alt+I, you need to cut the text in multiple cursor mode as well:

    1Enter2Enter3EnterEnteraEnterbEnterc

    Shift+

    Shift+Alt+I

    Shift+

    Ctrl+X

    , 

    Ctrl+V

    As of the 1.23.1 April update, a more convenient, middle mouse button selection can be used.

    With the cursor and keyboard, Instead of cutting the lines like normal, select from the end of the cursor to the beginning while in multi-cursor mode while holding Ctrl+Shift. After cutting the text with Ctrl+X, select with multiple cursors again by holding Ctrl+Shift. Then, type ,  and paste with Ctrl+V like you described.

    You can also use Ctrl+Alt+Shift and the direction arrows to select with multiple cursors,

提交回复
热议问题