How to make IntelliJ prompt me for command line arguments

后端 未结 2 732
栀梦
栀梦 2020-12-14 17:29

In Eclipse, you can provide the program argument ${string_prompt} in your run configuration to have it prompt for the command line arguments.

Is there

2条回答
  •  情书的邮戳
    2020-12-14 18:11

    Starting from versions 2018.3 and 2019.1, IntelliJ now supports macros in Run configurations. You can use $Prompt$ anywhere in the VM Options, Program arguments, etc. fields, and it will behave just like ${string_prompt} in Eclipse -- it will prompt you for parameters when the configuration is run.

提交回复
热议问题