Sunday, January 24, 2016

Add shortcut for quit kernel in Mathematica

1. Navigate to Program Files/Wolfram Research/.../.../SystemFiles/FrontEnd/TextResources/Windows/
2. Edit the KeyEventTranslations.tr file
3. Example: If you want to add a shortcut for quit kernel, then insert the following into the file:       

Item[KeyEvent["q", Modifiers -> {Control}],
               FrontEndExecute[
                       FrontEndToken[
                                SelectedNotebook[],
                                "EvaluatorQuit",
                                Automatic
                       ]
               ]
       ],

This will assign Ctrl+q as a shortcut for quit kernel

No comments:

Post a Comment