How do I duplicate a line or selection within Visual Studio Code?

前端 未结 17 2308
青春惊慌失措
青春惊慌失措 2020-12-04 04:38

Using Microsoft\'s Visual Studio Code, how do I duplicate a line of code and then move it up and down? (Similar to Sublime\'s cmd+shift+d be

17条回答
  •  抹茶落季
    2020-12-04 05:02

    For Linux users: I noticed what on Linux you quite an often need to use win key. For Windows combo is:
    ctrl + shift + alt + up

    then for Linux is same just add win key:
    ctrl + shift + win + alt + up

    I noticed that in a few combos now. Say ctrl + alt + L locks Linux, but ctrl + win + alt + L for Intellij formats code. Under Windows is just ctrl + alt + L to format the code.

提交回复
热议问题