如何在 Android Studio IDE 中添加代码片段? [英] How to add code snippets in Android Studio IDE?
本文介绍了如何在 Android Studio IDE 中添加代码片段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道如何在 Android Studio IDE 中添加代码片段?我没有找到菜单项或类似内容.
does anyone know how to add code snippets in Android Studio IDE? I didn't found a menu entry or something like this.
我还想知道是否可以更改现有代码段?
I also want to know is it possible to change the existing snippets?
推荐答案
添加/编辑模板:
在菜单上选择File ->设置
,然后在IDE Settings
(或Editor
)下转到Live Templates
.
On the menu choose File -> Settings
, then under IDE Settings
(or Editor
) go to Live Templates
.
插入模板:
在菜单上选择Code ->插入实时模板
(或使用指定的快捷键).
On the menu choose Code -> Insert Live Template
(or use it's assigned shortcut key).
Android Studio 3.4 截图
这篇关于如何在 Android Studio IDE 中添加代码片段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文