Feature Request - Copy Quoted / Paste Unquoted

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' +
'FROM t1'

than (Delphi)

'SELECT f1'#13 +
'FROM t1'


or (Java)

"SELECT f1\n" +
"FROM t1"

2
8 comments
Avatar
Permanently deleted user

We should be able to edit the post there.

Where reads:

For me is better pasting (Delphi)

'SELECT f1' +
'FROM t1'


Should be:

For me is better pasting (Delphi)

'SELECT f1 ' +
'FROM t1'


Missed a space.

0

Can you please specify where from and where to do you want this copy/paste feature work exctly? As this escaping copy/paste feature only works for programming lanuages which are supported by IDE.

0
Avatar
Permanently deleted user

I want exactly the same feature from Navicat:

http://www.navicat.com/manual/online_manual/es/navicat/win_manual/QueryEditorFeature.html

"Copy with Quotes"

It should work with plain text. No IDE involved.

0

Does Edit | Paste Simple in DataGrip action do what you need?

0
Avatar
Permanently deleted user

No, I want to copy the query made FROM data grip, with proper quoting!

I made a video.

https://youtu.be/bwr1BvySCUM

0
Avatar
Permanently deleted user

Thanks. The link shows a 404.

Please vote to the request too!!!

0

404 is because of a space in the end of link, corrected it tanks. Submitter can not vote for reported by him requests :)

0

Please sign in to leave a comment.