Search code examples
sqltemplatesdatagrip

Datagrip, create custom template


I was wondering if it is possible to create my custom SQL template in Datagrip. As users of Datagrip know, if you type sel and then wait or press Ctrl+Space, a panel is shown with options. One of them is the template for:

Select * from ;

How could I create my own?


Solution

  • I have found out that if you type in a new file, for example:

    sel and then hit CTRL+space
    

    it will show:

    enter image description here

    Click the yellow lamp in the right top corner of the popup. It will show another menu with "Edit live template settings" option inside it where you can create your own templates.