Every run/debug configuration creates a separate tab when you run it. When the application starts, you can view its output and interact with it in the Run tool window. To quickly access the fields only using a keyboard, hold Alt and use the shortcut according to the hints that appear.Ĭlick OK to save the run configuration for later, or Run to save and run it right-away.įor running applications using build tools, refer to Run anything and Compile and build applications with IntelliJ IDEA. To access additional parameters, click Modify options and select the required option from the menu. For example, if you need to run your program with arguments, add the arguments to the Program arguments field. Modify the run/debug configuration as needed. Customizable wayĬlick in the gutter near the class declaration and select Modify Run Configuration. From the widget that opens, you can debug the code, run it with coverage, profile it, or open the run configuration to specify more options. You can access other runners as well: expand the list and select Current File. In the editor, open the file that you want to run.Ĭlick next to the Current File option on the toolbar. The run and debug buttons are active and allow you to instantly run the currently opened file. You can run single files using a dedicated option on the toolbar. The class that you are going to execute must contain a main() method with a valid signature, for example: public static void main(String args).Ĭlick in the gutter near the class declaration and select Run. If you are not going to pass any parameters to your program, and your program does not require any specific actions to be performed before start, you can run it right from the editor. You can run applications right from IntelliJ IDEA if you have an SDK set up for your project/ module.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |