Android Studio中自己定义快捷输入块


快捷键:Ctrl + Alt + s,进入Settings

>Editor>Live Templates>output中加入一个项,选择第一个Live Template

图片1

点击Define。勾选Everywhere后确定才干在自己想要的地方高速调用出来:

图片2

例如以下。在xml中一样能够调出来:

图片3

回车后:

图片4

原文地址:https://www.cnblogs.com/bhlsheji/p/5331986.html