如何配置“缩短命令行"IntelliJ中整个项目的方法 [英] How to configure "Shorten command line" method for whole project in IntelliJ
问题描述
当我运行测试时,我收到错误命令行太长".如果我将运行/调试配置中的缩短命令行"方法设置为特定方法或类的JAR 清单",它会起作用,但是我如何为整个项目设置它,或者是否有 IDE 全局设置?
When I run tests I get the error "Command line is too long". It works if I set the "Shorten command line" method in the Run/Debug configuration to "JAR manifest" for the specific method or class, but how do I set it for the whole project or is there an IDE global setting for it?
推荐答案
您可以通过 更改默认值 JUnit 运行/调试配置模板.然后,您在项目中创建的所有新运行/调试配置都将使用相同的选项.
You can set up a default way to shorten the command line and use it as a template for further configurations by changing the default JUnit Run/Debug Configuration template. Then all new Run/Debug configuration you create in project will use the same option.
这是相关博文 关于可配置的命令行缩短器选项.
Here is the related blog post about configurable command line shortener option.
这篇关于如何配置“缩短命令行"IntelliJ中整个项目的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!