简体   繁体   English

让IntelliJ IDEA像Eclipse一样编译和运行

[英]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.

相关问题 IntelliJ IDEA或Eclipse可以在一个操作系统上运行UI,但可以在另一操作系统的容器中进行编译-生成-执行吗? - Can IntelliJ IDEA or Eclipse run UI on one OS, but compile-build-execute in a container on another OS? 在eclipse中关闭intellij想法中未使用的模块 - Closing unused modules in intellij idea like in eclipse IntelliJ IDEA + Vagrant:在VM环境中编译和运行 - IntelliJ IDEA + Vagrant: compile and run in VM environment 无法在IntelliJ IDEA中编译和运行java代码 - Cant compile and run java code in IntelliJ IDEA IntelliJ Idea:用于像Eclipse中那样创建方法的代码完成 - IntelliJ Idea: code completion for creating method like in Eclipse 任何方式(或快捷方式)自动导入 IntelliJ IDEA 中的类,如 Eclipse? - Any way (or shortcut) to auto import the classes in IntelliJ IDEA like in Eclipse? IntelliJ IDEA检查像Eclipse(Cmd-Shift-I)这样的变量 - IntelliJ IDEA inspect variable like Eclipse (Cmd-Shift-I) Intellij Idea为每个源文件夹指定输出文件夹(如eclipse) - Intellij idea specify output folder for each source folder (like in eclipse) 如何像 Eclipse 的 clean 一样清理 Intellij 想法中的项目缓存? - How to clean project cache in Intellij idea like Eclipse's clean? Java 在 IntelliJ IDEA 中构建并运行成功但在 Mac 终端中编译失败 - Java built and run successfully in IntelliJ IDEA but failed to compile in Mac terminal
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM