Intellij:更改 JUnit 测试类模板 [英] Intellij: Change JUnit Test Class template
本文介绍了Intellij:更改 JUnit 测试类模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想自定义 JUnit 测试类模板,但是我在设置中的任何地方都找不到它.这个人有同样的问题.我在文件模板或实时模板中找不到任何内容.我使用的是 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
-Editor
-File and Code Templates
-Code (tab)
-JUnit4 Test Class
在右侧窗口中编辑代码.
edit the code in the right window.
这篇关于Intellij:更改 JUnit 测试类模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文