Intellij Idea 13 是否有代码片段编辑器? [英] Is there a code snippet editor for Intellij Idea 13?

查看:18
本文介绍了Intellij Idea 13 是否有代码片段编辑器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 具有可用于创建和管理自定义代码片段.有没有类似 Intellij Idea 13 的扩展,或者简单地添加自定义代码片段的方法?

Visual Studio has Snippet Designer extension available for creating and managing custom code snippets. Is there something like this extension for Intellij Idea 13, or a way to simply add custom code snippets?

推荐答案

没有我知道的扩展(而且我不熟悉 Snippet Designer),但 IntelliJ Idea 中存在该功能.

There's no extension that I'm aware of (and I'm not familiar with Snippet Designer), but that functionality exists in IntelliJ Idea.

点击首选项并开始输入以查找实时模板".展开现有功能之一以查看一些可用功能.您可以设置制表位、光标位置、对局部变量的引用.非常方便.

Hit Preferences and start typing to find "Live Templates". Expand one of the existing ones to see some of the available functionality. You can set tab stops, cursor position, references to local variables. It's very handy.

这篇关于Intellij Idea 13 是否有代码片段编辑器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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