Run the current file in IntelliJ?

I can't find a "Run current file, otherwise selected context" action. I did find them separately.

Key binds for "Run current file":

  • Run context configuration
  • Debug context configuration

Did this change since the original question? In 2018 on Mac I just do ctrl + r to re-run the last run file and ctrl + shift + r to run the current file.


Years later, the simple answer: Right click inside the file and hit "Run"!


If you hover over the Run and Debug buttons you'll see the shortcuts. Given you're on a Mac OS and Fn is important to trigger F buttons here's the shortcuts:

Run: Shift + Fn + F10

Debug: Shift + Fn + F9