Home > database >  How to do block-comments in Google Colab on a Mac with a non-American keyboard?
How to do block-comments in Google Colab on a Mac with a non-American keyboard?

Time:09-02

I want to do block-comments in Colab using a Mac laptop (Enter image description here

This leads to several problems:

  1. The shortcut I need is one of the very few that can't be customized.
  2. On my non-American keyboard, I need to press Shift 7, to get /
  3. On the Mac, Shift 7 is bound to the Help menu: How to use the macOS Help menu

To summarize, every time I try to comment a block of code, the Help menu opens instead. Is there any workaround for this?

PS: I tried all the other answers to Is it possible to do block-comments in Google Colab?, and they didn't work.

CodePudding user response:

I found a simple solution. If the standard solution Shift 7 doesn't work for you (like it didn't for me)....just use the / from the numeric keypad!

numeric keypad 7 worked great for me.

  • Related