Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I went to a Wolfram Technologies workshop a few weeks ago and the presenter showed us a keyboard shortcut that when a block of input is selected, the shortcut puts the block of selected input in (* comment *) brackets. I've forgotten what the shortcut is though. Does anyone know what it is?

share|improve this question
On my Mac, it's ⌘ /. –  hftf Apr 14 '14 at 11:32
and Alt+/ on Windows. –  kglr Apr 14 '14 at 11:42
It's in one of the menus; the Edit menu I believe. –  Sjoerd C. de Vries Apr 14 '14 at 12:05
It's Alt+/ on Linux. (On a german keyboard, this would be Alt+Shift+7.) –  Stefan Apr 14 '14 at 13:34
On Windows, you can also use context menu short cut: RightClick+u –  kglr Apr 14 '14 at 15:18

1 Answer 1

up vote 6 down vote accepted

The short-cut keys for various actions can usually be found directly in the menu. Here on OSX you see the +/ at the right side under Un/Comment Selection:

enter image description here

As pointed out in the comments for various systems the short-cut to comment a selection is

  • +/ for Mac OS X
  • Alt+/ for Windows
  • Alt+/ for Linux
share|improve this answer
Unfortunately on a german keyboard it's impossible to get [Alt]+[/]. It behaves like [Alt]+[7] and you'll change the style to "Text". But somewhere on SE there is a solution for mapping the commands to other keys. –  Phab Oct 23 '14 at 9:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.