The PHP/PHP Line Comment menu command only seems to ADD a comment to a line. For example, click on a line and then select PHP Line Comment. The // is added to the beginning of the line. Now select Line Comment again, and *another* // comment is added. I need a way to TOGGLE the // comment on a line.
If I select a block of text, the Line Comment adds the // to each line, and if I select the same block of text again, then Line Comment *will* remove the comments. So this *does* act as a toggle when multiple lines are selected. This is inconsistent and doesn't work on just a single line when the text isn't selected.
Also, when commenting a selection of text, the line following the selection is also commented. For example, if I have:
Code: Select all
line 1
line 2
line 3
In general this whole function is a mess. And I use this function a lot in my coding. Please clean this up soon before I give up and go back to a different PHP IDE. Thanks.