How do I select a single line within Visual Studio Code?

前端 未结 6 1434
误落风尘
误落风尘 2020-12-28 13:46

Using Microsoft\'s Visual Studio Code, how do I select a single line of code? (equivalent to Atom\'s or other IDE\'s Cmd+L on Mac)

And what wo

6条回答
  •  抹茶落季
    2020-12-28 14:06

    As for me, I noticed that what was causing the issue was that there were similar keyboard shortcuts. As a result, what fixed it was deleting the similar keys.

    So when I tried to use + L I noticed that there was this thing in the left corner.

    Picture that says it is awaiting an actual command:

    picture that says it is awaiting an actual command

    So what I did was simply delete the commands in the keyboard shortcut (i.e. + K + S) that were similar. They ended up being shortcuts for the live server extension.

    You can see which ones are similar by typing cmd + L in the search bar for the keyboard shortcut. Any command that starts with + L will take precedence over the single one that just uses + L hence the reason it didn't work for me.

    Keyboard shortcut search of cmd + l:

    keyboard shortcut search of cmd + l

    Hope this helps anyone that may need clarification on this!

提交回复
热议问题