How to put the cursor at the end of all selected lines in Visual Studio Code?

前端 未结 3 1179
梦谈多话
梦谈多话 2021-01-27 00:00

I have the following code:

CList.Add( new CodeStuff(941,\"National List Limit
CList.Add( new CodeStuff(945,\"Code not used
CList.Add( new CodeStuff(946,\"State B         


        
3条回答
  •  天涯浪人
    2021-01-27 00:10

    Not completely sure I understand, but Shift-Alt-I will put a cursor at the end of all selected lines so just select your text and Shift-Alt-I (that is an 'eye' at the end). Then typing "); will put that at the end of each line.

    ---------------------- Edit -------------------------------

    I see that Column Selection Mode (in v1.43) does this nicely now (with Selection/Column Selection Mode enabled) depending on your direction of selection [unfortunately the gif does a poor job of showing the cursors but they are all at the beginning or ends of the lines depending on the direction of selection]:

提交回复
热议问题