Keyboard shortcut to evaluate notebook

Personally I would use what bill_s suggested, Ctrl+A followed by Shift+Enter.

But if you want to have one shortcut you can use what Timothy linked. Just add this line to the KeyEventTranslations.tr file:

 Item[KeyEvent["h", Modifiers -> {Control}], 
      FrontEndExecute[FrontEndToken[SelectedNotebook[ ], "EvaluateNotebook"]]]  

it works for me.


Your infinite loop probably showed while testing on the notebook. Well, if you want to evaluate notebook and the last line is

FrontEndTokenExecute["EvaluateNotebook"]

then it will definitelly result in such loop.


For OSX you can do the following.

  1. Select Mathematica.

  2. Click on "Mathematica" menu then "Services -> Services Preferences..."

  3. Select "Shortcuts" tab.

  4. In the left side select "App Shortcuts".

  5. Click the + button.

  6. Fill out the following.

    enter image description here

  7. Click add after you have set your short cut key and you are good to go.


I use Alt+v+o, or Alt, then v, then o (they don't have to be entered at the same time, just in succession). That's the same as Evaluation > Evaluate Notebook