I recently upgraded to Mathematica 11 for some side projects. I love the program, but I was annoyed to see that there is no keyboard shortcut for the Evaluate Notebook command. F8 appears to be unused in the normal configuration on Linux. So Im posting a solution for adding F8 as a keyboard shortcut for Evaluate Notebook:
If you are on Linux, all you have to do is edit /usr/local/Wolfram/Mathematica/11.2/SystemFiles/FrontEnd/TextResources/X/MenuSetup.tr
Make a backup of MenuSetup.tr
Open MenuSetup.tr
Search for Evaluate Notebook
Youll find the correct line (there is only one). Add , MenuKey[F8, Modifiers->{}] after EvaluateNotebook
The revised line should read MenuItem[Evaluate N&otebook, EvaluateNotebook, MenuKey[F8, Modifiers->{}]],
Re-launch Mathematica, and you should see F8 next to the Evaluate Notebook command. Try it out.
Success!
Is there some reason why there is no keyboard shortcut for Evaluate Notebook? I am at a loss because it is simple to add one.
Note: do not copy and paste the above inserts into your MenuSetup.tr file or Mathematica will give you an error message on launch. This is because the quotes around the “F8” or “E” must be straight quotes, not curly quotes. I don’t know why they showed up as curly quotes in this post, but I realized the error when I copied and pasted from my post after installing 11.3. Lol.
You’ll have to open Notepad as an administrator. I did the edit, but the first re-launch didn’t change the menu. I discovered this is because I left a copy of the original file in the same folder. Apparently, the FrontEnd searches for the first file named MenuSetup. I removed the copy from the folder and it worked.