IntelliJ IDEA - 新模板 [英] IntelliJ IDEA - New Template

查看:153
本文介绍了IntelliJ IDEA - 新模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为IntelliJ创建一组自定义文件模板。

I'm trying to create a set of custom file templates for IntelliJ.

我基本上想要右击,新建>我的文件模板类似与IntelliJ捆绑在一起的New> Java Class。

I basically want to go right-click, "New > My File Template" similar to the "New > Java Class" bundled with IntelliJ.

我通过设置>文件模板添加了我自己的自定义文件模板,但它们没有出现在我的新上下文菜单中。

I've added my own custom file template via "Settings > File Templates", but they don't appear in my "New" context menu.

这是一个Java项目,我的模板扩展名是java。我错过了什么吗?

This is a Java project, and my templates extension is java. Am I missing something?

所有帮助都非常感谢。

否我的模板>>>

推荐答案

如果选择Java Class,则可以为新类选择模板。这是一项新功能,它在选择新功能时可用。

If you select Java Class you can then choose the template for your new class. This is a new feature, it used to be available when selecting New.

这篇关于IntelliJ IDEA - 新模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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