Print Thread
Commenting / uncommenting - two feature requests
#39784 03/24/11 07:58 AM
Joined: Jun 2009
Posts: 14
Warsaw, Poland
S
Scovron Offline OP
Member
OP Offline
Member
S
Joined: Jun 2009
Posts: 14
Warsaw, Poland
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.

Re: Commenting / uncommenting - two feature requests
Scovron #39786 03/24/11 09:33 AM
Joined: Mar 2007
Posts: 210
Rostock, Germany
Member
Offline
Member
Joined: Mar 2007
Posts: 210
Rostock, Germany
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



There is no shortcut for experience(d).

PL/SQL Developer Version 10+11+12, Query Reporter Version 3.2.0.300
Oracle 11g,12c
Windows Server 2003/2008
Windows 10 Professionel 64 bit



Re: Commenting / uncommenting - two feature requests
Theod #39798 03/24/11 02:26 PM
Joined: Oct 2005
Posts: 587
Belgium
Member
Offline
Member
Joined: Oct 2005
Posts: 587
Belgium
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


Roeland
Re: Commenting / uncommenting - two feature requests
Roeland #39812 03/25/11 02:11 PM
Joined: Feb 2003
Posts: 392
The Netherlands
Member
Offline
Member
Joined: Feb 2003
Posts: 392
The Netherlands
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


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.034s Queries: 14 (0.010s) Memory: 2.5104 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-05-09 22:39:50 UTC
Valid HTML 5 and Valid CSS