Format SQL Code within the highlight block

Completed

Hi DataGrip team,

It would be grate to allow only format the code been highlighted by this green box, just like executing SQL code will only execute the code within this green box.

At this moment, if I use 'Reformat Code', it will ignore this highlight context and format everything in the file. However, most of time I only want to format this block, rather than everything.

Thanks,

1 comment
Comment actions Permalink

Hello, Thinkriver

You can select a statement and the call to reformat — in this case just the selected code will be reformatted.

0

Please sign in to leave a comment.