Comments in sql editor

vodish's profile image vodish posted 2 weeks ago in General Permalink

Dear Ansgar, thank you very much for your HeidySQL.

Please add a keyboard shortcut to the code editor to comment/uncomment the selected lines as in VSCode.

by ctrl+/

ansgar's profile image ansgar posted 2 weeks ago Permalink

There is already one. See the context menu, then "Un/comment". You can assign a custom keyboard shortcut in Tools > Preferences > Shortcuts > SQL.

vodish's profile image vodish posted 2 weeks ago Permalink

thank you very much.

is it possible to add a capture of the entire line for commenting?

for example:

-- UPDATE sub_state

-- SET method = 'S_MY'

-- WHERE method = 'S-MY';

I'm highlighting two lines completely and one not completely. the result is a comment. but I expect a uncomment...

-- UPDATE sub-- _state

-- -- SET method = 'S_MY'

-- -- WHERE method = 'S-MY';

ansgar's profile image ansgar posted 2 weeks ago Permalink

It may still make sense to comment a part of a line. If you want to comment the whole lines you will need to select not only a part of it.

Please login to leave a reply, or register at first.