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
Post a Comment