如何让 IntellIJ 对项目中的所有主文件使用 JVM 选项? [英] How do I make IntellIJ use JVM options for all main files in a project?

查看:31
本文介绍了如何让 IntellIJ 对项目中的所有主文件使用 JVM 选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以配置一个主文件以使用所需的本地文件,但在我的项目中有多个主要功能,所以当我可以选择调试任何我想要的文件时,我需要所有文件来使用 JVM 选项,而无需创建每个人的配置

I can configure a main file to use natives needed, but in my project there are multiple main functions so I need all the files to to use the JVM option when I can choose to debug whichever one I want without having to create a configuration for each one

推荐答案

您可以更改Defaults节点下的配置(新版本为Templates),所有新的配置将继承其设置.确保更改正确的默认配置类型,Application 很可能是您需要的.

You can change the configuration under Defaults node (Templates in the new versions), all the new configurations will inherit its settings. Make sure to change the correct default configuration type, Application is most likely what you need.

参考文档详情.

这篇关于如何让 IntellIJ 对项目中的所有主文件使用 JVM 选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆