本文介绍了Intellij:更改JUnit测试类模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想自定义JUnit Test类模板,但是我无法在设置中找到它。 存在同样的问题。我在文件模板或实时模板中找不到任何内容。我正在使用Intellij 11。
I would like to customize the JUnit Test class template however I cannot find it anywhere in settings. This guy has the same problem. I can't find anything in File Templates or Live Templates. I'm using Intellij 11.
推荐答案
现在在最新的IntelliJ IDEA / Android Studio中解决了这个问题。转到:
This is now solved in the latest IntelliJ IDEA / Android Studio. Go to:
Settings
-File and Code Templates
-Code (tab)
-JUnit4 Test Class
编辑右侧窗口中的代码。
edit the code in the right window.
这篇关于Intellij:更改JUnit测试类模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!