This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Toggle comment should inspect each line on multiline selection. Currently it looks like only the first line is inspected to decide if a line should be commented out or in. I'm missing this since I switched from JBuilder some years ago: before Toggle: some code // another line of code after toggle (JBuilder): // some code another line of code after toggle (NetBeans): // some code //// another line of code
Yes, this would be nice. Targeting 6.8.
Set target-milestone of open issue to TBD (was < 7.3, f.e. 6.8), so the issue doesn't get lost.
Set target-milestone of open issue to TBD (was < 7.3, f.e. 6.8), so the issue doesn't get lost. This time the target milestone is really set.
Created attachment 141792 [details] Proposed patch I like to propose a patch for this RFE. Please review and commit! The toggle comment logic now toggles the comment at each line separately. This works now as requested, but the common NB user might be accustomed to the old behaviour.
Thanks a lot for adding this! This is so useful for debugging. Can't wait to use it.
Makes sense. Patch applied. Thank you for your contribution. http://hg.netbeans.org/jet-main/rev/7f2af9990520
Integrated into 'main-silver', will be available in build *201405170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/7f2af9990520 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #168430 - Patch for: toggle comment broken for multiline selection - applied.
Unfortunately, the original patch had to be reverted. See #244615 for more details. http://hg.netbeans.org/jet-main/rev/c6ed70327131
Integrated into 'main-silver', will be available in build *201405280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/c6ed70327131 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #244615 - regression: broken Toggle Comment - fixed. Patch for ##168430 reverted.