How to Move a Line Up or Down in Visual Studio Code for Mac

前端 未结 4 655
再見小時候
再見小時候 2021-01-30 19:27

I\'m familiar with how to move a line up or down in other editors, like Atom and Sublime.

How is this done in Visual Studio Code for Mac?

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-30 19:58

    You can find the corresponding commands in the Selection menu (Move Line Up and Move Line Down) together with currently set short-cuts.

    Additionally, if you launch the command palette (View/ Command Palette) while you have an open document you also find them there (type "move" or "line").

提交回复
热议问题