How to repeat input a character in DataGrip? -


i add comment line between each block of sql statements. there easy way type several -- in datagrip this:

------------------------------ 

in vim, can type number followed i-, in datagrip, have hold down - key second.

you can live templates

define new template navigating file->settings->live templates

select sql

click green + sign on top left

add abbreviation - use '--'

add comment string, ie '----------------------' in 'template text' box

define 'application context' sql (directly underneath template text box).

now, when in sql editor, type -- followed tab , '---------------' appear.

while you're in live templates window, note other predefined handy predefined templates use.

full documentation here

here's screenshot of mine (looks different because it's pycharm)


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -