Hi, there is a feature that exists on other tool (i think it was navicat):
Select SQL, Right Click, Below "Copy as Plain Text" Add "Copy Quoted", with a submenu with programming languages, and you quote and add line breaks for that programming language.
And (I never saw that anywhere) on paste, remove the quotes!
I know if I paste within a String on Jetbrains IDE's it'll quote correctly. But I'm trying to replace (not renewing) Navicat for DataGrip, And I miss this feature, mainly on Delphi code.
You shouldn't add line breaks inside the string, but if you chose to do that, I can live with this.
For me is better pasting (Delphi)
'SELECT f1' +
'SELECT f1'#13 +
"SELECT f1\n" +