What key shortcuts are to comment and uncomment code?

前端 未结 7 1666
借酒劲吻你
借酒劲吻你 2020-12-07 13:01

There were Ctrl+E+C (comment) and Ctrl+E+U (uncomment) in older versions, or Ctrl+K+<

7条回答
  •  广开言路
    2020-12-07 13:21

    I went to menu: ToolsOptions.

    EnvironmentKeyboard.

    Show command containing and searched: comment

    I changed Edit.CommentSelection and assigned Ctrl+/ for commenting.

    And I left Ctrl+K then U for the Edit.UncommentSelection.

    These could be tweaked to the user's preference as to what key they would prefer for commenting/uncommenting.

提交回复
热议问题