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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -