intellij是否支持启动配置中的变量? [英] does intellij support variables in launch configurations?

查看:645
本文介绍了intellij是否支持启动配置中的变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在eclipse中,我可以在启动配置中在vm参数或程序参数中包含如下内容:

In eclipse I can include things like the following in the vm args or program args in a launch configuration:

-Dsome.system.property=${string.prompt:explanation:default}

获取一个字符串提示在一个小的弹出显示解释文本和准备与默认,它允许您轻松注入属性和每次运行应用程序。

When you run this, you get a string prompt in a little pop up showing the explanation text and ready with the default, and it allows you to inject properties easily and per run of the application.

I使用它很多的东西,如指定是否需要一个应用程序的开发或测试实例。您还可以通过 $ {env_var:ENVIRONMENT_VARIABLE_NAME} 选择特定于计算机的配置,用于在开发人员之间共享这些启动配置。

I use it a lot for things like specifying whether I want a dev or test instance of the application. You can also do ${env_var:ENVIRONMENT_VARIABLE_NAME} to pick up machine specific config, useful for sharing these launch configs between developers.

IntelliJ Idea中支持这个或类似的东西吗?是否有提供此功能的插件?

Is this, or anything similar, supported in IntelliJ Idea? Are there plugins that provide this functionality?

推荐答案

IntelliJ中没有直接等效。为了便于在多个开发人员之间共享配置或其他项目设置,可以使用路径变量(设置|路径变量,有关详细信息,请参阅帮助)。要在启动运行配置之前自定义选项,请在运行配置设置中启用启动前|显示设置选项。

There is no direct equivalent in IntelliJ. To make it easier to share configurations or other project settings between multiple developers, you can use path variables (Settings | Path Variables, see the Help for more information). To customize the options before launching the run configuration, enable the "Before launch | Show Settings" option in the run configuration settings.

这篇关于intellij是否支持启动配置中的变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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