How to comment multiple lines in Visual Studio Code?

后端 未结 30 1862
感情败类
感情败类 2020-11-28 00:23

I cannot find a way to comment and uncomment multiple lines of code in Visual Studio Code.

Is it possible to comment and uncomment multiple lines in Visual Studio Co

相关标签:
30条回答
  • 2020-11-28 00:59

    For doing on mac: CMD + Shift + 7

    0 讨论(0)
  • 2020-11-28 01:01

    visual studio 2017 we do a: Comment Selection

    Ctrl+K, Ctrl+C

    press Ctrl+K to get shortcut. press Ctrl+C to confirm http://visualstudioshortcuts.com/2017/

    0 讨论(0)
  • 2020-11-28 01:01

    on Windows 10, Italian Keyboard, VSC 1.19.1:

    Select lines that you want comment and press "Ctrl + ù"

    0 讨论(0)
  • 2020-11-28 01:02

    In my case, Ubuntu, the shortcut is ctrl+shift+A.

    0 讨论(0)
  • 2020-11-28 01:02

    Win10 with French / English Keyboard CTRL + / , ctrl+k+u and ctrl+k+l don't work.

    Here's how it works:

    /* */ SHIFT + ALT + A

    // CTRL + É

    É key is next to right Shift.

    0 讨论(0)
  • 2020-11-28 01:02

    Select lines which you want to Comment

    Then press Ctrl + / to make selected lines comment

    And to uncomment:
    Select the commented lines you which want to uncomment
    First press Ctrl + K then Ctrl + Uto make commented lines uncomment

    0 讨论(0)
提交回复
热议问题