1. I would like to toggle selection comment. For example, when I'm replacing values in where clause, that looks like this:
Code
where my_field = 'my_val1' /*'my_val2'*/
I have to mark 'my_val1', press Selection comment button, then mark 'my_val2' and press Selection uncomment.
Marking whole 'my_val1' /*'my_val2'*/ and toggling comment would be much faster.

2. Sometimes I'd rather comment code block by adding double dash at the beginning of each line instead of putting it into comment block. With many lines it takes a lot of time, so it would be great if I could do it just by selecting and pressing the button. Maybe the Selection comment button could be a drop-down button (like log on) with block comment as default (/*...*/) and double-dash as one of options.
Hi,

for 2. you can try the 'Comment lines'-Plugin from bar-solutions.com.

I've for example the keys
<ctrl> + <-> to comment with /* */ and <shift>+<ctrl>+'-' to uncommit
and with the '-' from num-block !
<ctrl> + <-> to comment with -- and <shift>+<ctrl>+'-' to uncommit

For 1. you can do the following:


Code
where my_field = /**/'my_val1' /*/'my_val2'/**/
Now removing the second '/' will toggle your values.
It works only with 2 values though.

Roeland
or you can use something similar to this:
Code
where my_field = 
 'my_val1'
 --'my_val2'
and use my commentlines plugin to toggle the comments on the different lines.

Kindest regards,
Patrick
© Allround Automations forums