Reputation: 23104
I find myself repeating the following process all the time:
1. Run -> Edit config -> Add new config -> Application
2. Name: class name of current file
3. Main class: class name of current file
4. OK
I am wondering if there is a short cut to automate all these steps.
Upvotes: 0
Views: 84
Reputation: 34776
You can run the current class without manually creating run configuration.
If your class contains main method (or if it is a JUnit class or other type of file that IntelliJ knows how to run), just hit CTRL+SHIFT+F10 and run configuration will be created for you.
On Mac OS X it is CTRL+SHIFT+R.
Upvotes: 1