[英]Have IntelliJ IDEA compile and run like Eclipse
I'm trying out my school's academic license for IntelliJ. 我正在试用我学校的IntelliJ学习许可证。 My project is in the beginning stages and has multiple Main.java in different packages.
我的项目处于起步阶段,并且在不同的程序包中有多个Main.java。
In Eclipse, I can run a chosen Main.java and ignore errors in other packages. 在Eclipse中,我可以运行所选的Main.java并忽略其他软件包中的错误。 How can I do this in IntelliJ?
如何在IntelliJ中执行此操作?
In your Run/Debug configuration there's a Before Launch
section. 在您的“运行/调试”配置中,有一个“
Before Launch
部分。 By default there's a Make
action there. 默认情况下,这里有一个
Make
操作。 You can remove it and add a Make, no error check
instead. 您可以删除它,然后添加“
Make, no error check
。
If you want this to be default behavior for all new Application Run/Debug configuration, you'll need to adjust the Default section instead of a concrete one. 如果要将其作为所有新的“应用程序运行/调试”配置的默认行为,则需要调整“默认”部分,而不是具体的部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.