How to run Java scratch file in IntelliJ IDEA

后端 未结 1 1520
不思量自难忘°
不思量自难忘° 2021-02-12 18:33

I just start using IntelliJ-14 and I want to know about a scratch file. If I create a java scratch can I compile this as a normal Java class. What I Ha

相关标签:
1条回答
  • 2021-02-12 18:56

    Executability for Java scratch files was added in IntelliJ 15, so you must upgrade for that feature.

    You have several option how to run/debug the scratch file:

    • Click the icon next to the main method/class
    • Hit Control+Shift+R (Control+Shift+F10 on Linux/Windows) somewhere within the scratch file
    • Right click inside the method/class and select appropriate run/debug option

    0 讨论(0)
提交回复
热议问题