A keyboard shortcut to comment/uncomment the select text in Android Studio

后端 未结 9 1379
鱼传尺愫
鱼传尺愫 2021-01-31 13:48

How do I comment out several lines of text selected in the IDE with a control key combination?

I thought that Ctrl + Alt + C was the cor

9条回答
  •  遇见更好的自我
    2021-01-31 14:14

    I had the same problem, usually, you have found the shortcut but it doesn't work because you have not a NumPad. Actually, the only one issue I found is to set my own shortcut with the one I suppose should works.

    First step, find the IDE shortcuts : cmd + shift + A enter shortcuts

    Second step : Find Comments Shortcut with the finder

    Third step : Set your custom shortcut (I suggest cmd + shift + / or cmd + : )

    Now enjoy, it works on a macBook without NumPad

    edit : cmd + shift + : has conflicts

    Edit : this both works without conflicts Issue on MacBook

提交回复
热议问题