Author Topic: Shortcut key to comment in CB like in vs code?  (Read 1724 times)

Offline giftofshivaji

  • Single posting newcomer
  • *
  • Posts: 6
Shortcut key to comment in CB like in vs code?
« on: March 29, 2023, 08:51:09 am »
In vs code you can press ctrl / to comment, what's the shortcut key  for it in codeblocks?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Shortcut key to comment in CB like in vs code?
« Reply #1 on: March 29, 2023, 09:52:09 am »
Hi, there is a plugin named "Keyboard shortcuts", there you can define any shortcut key to any command.

If you look at the Menu->Comment, you will see the current shortcut key.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.