Live Templates of IntelliJ IDEA (study notes, continuous update)

Preface

Calling regular real-time code templates is mainly through two shortcut keys: Tab and Ctrl + J

Introduction of self-variable parameters

$END$,表示最后都编辑完后光标所处的位置
$SELECTION$,表示设置环绕实时代码模板

My template:

public Resp a$SELECTION$() {

    return Resp.success("ok", null);
}

 

Guess you like

Origin blog.csdn.net/qq_36850813/article/details/102899677