9

I know that the keyboard shortcut to comment code in jupyter notebook is Ctrl+/.

But, what is the shortcut to uncomment code?

This question is interesting, but I cant find shortcut for uncomment. keyboard shortcut to clear cell output in jupyter notebook

Xavier Guihot
  • 54,987
  • 21
  • 291
  • 190
user3735606
  • 411
  • 1
  • 4
  • 9

1 Answers1

28

CTRL+/ is a toggle for comment and uncomment! Thanks George for the answer...

user3735606
  • 411
  • 1
  • 4
  • 9
  • For Opera users: The CMD+"/" shortcut is preset for calling "Help" in the browser window, so if you want to use CMD+"/" for Jupyter, you must disable it in Opera under Settings | Advanced | Keyboard Shortcuts > scroll down to "Help" (below "Downloads" entry) and delete the shortcut. Restart Opera. – Agile Bean Oct 22 '18 at 09:39
  • 1
    For Mac users: I found out that the CMD+"/" shortcut is also preset on OSX systemwide! So you must deactivate that under System Preferences | Keyboard | Shortcuts | App Shortcuts > uncheck "Show Help menu" entry – Agile Bean Oct 22 '18 at 10:22
  • 1
    I use ctrl + # key on my chromebook (in python kernel) to toggle comments – Luke Barker Jun 10 '19 at 13:14