Datagrip 评论 header 热键

Datagrip comment header hotkey

在我的公司,我想创建一个用于创建数据库函数的标准,并附上评论 header,例如:

/*
==================================================
Author:     John Doe
Created At: (Automatically fills in current date)
Where used: User fills in URL or whatever
==================================================
*/

数据抓取中有没有办法将此文本绑定到热键?

当然可以:代码段功能称为实时模板。

  1. 打开设置
  2. 转到实时模板
  3. 创建一个带有缩写的新模板,例如 'com'。
  4. 在编辑器中键入 'com' 并按 Tab

PS。使用占位符的变量。