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.

Bug 111810 - Comment/Uncomment buttons in editor toolbar are gone
Summary: Comment/Uncomment buttons in editor toolbar are gone
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 6 votes (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
: 112362 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-02 18:35 UTC by twolf2919
Modified: 2019-07-18 11:21 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description twolf2919 2007-08-02 18:35:59 UTC
This was a very useful feature: if I just wanted to quickly try something, I could highlight
the block, press that button, and be done with it.  Now, it seems like the only way to
do the same thing is to use some keyboard shortcut - and some of us are more visual
oriented and can't remember keystroke combinations too well :-)

So please reinstate this feature.
tom
Comment 1 tkellerer 2007-08-03 15:13:47 UTC
Actually I cannot use any shortcut to access this feature! 
The menu items are disabled as well. 
Comment 2 twolf2919 2007-08-03 16:57:17 UTC
When I wrote the issue, I saw the ability to assign keystroke to these actions via the key mapping (look under "Source")
- but I just tried that and even though it lets me assign keystrokes to the "Comment" and "Uncomment" actions, nothing
happens when I actually try it :-(
Comment 3 err 2007-08-03 19:39:38 UTC
Using build 200708011200, default "NetBeans" keymap in use, I used the mouse to select some lines of text, then did
"Ctrl-/" and those lines were commented. I tried the "Ctrl-Shift-D" as shown in the keymap options but that brought up
some uml thing in the navigator area, and did not uncomment. I tried "Ctrl-/" again and it removed the comments.

Since there is View>Toolbars>Customize..., it seems it should only be a question of making the actions available in the
customize dialog. 

Curiously, in the main toolbar's Source menu, the comment and uncomment are disabled even when text is selected.

Looks like there are a variety of interrelated things to sort out.
Comment 4 Max Sauer 2007-08-06 16:26:40 UTC
This is probably a duplicate of issue 111184.

*** This issue has been marked as a duplicate of 111184 ***
Comment 5 err 2007-08-07 19:54:32 UTC
Reopen, this is a different problem that issue 111184 (now closed) to which it was dup'd.

There is also Issue 112032 which may or may not be the same issue at this one. Getting comment/uncomment to be a
"proper" action that can be customized to the toolbar and moved through keymap bindings.
Comment 6 Jiri Prox 2007-08-09 08:50:29 UTC
*** Issue 112362 has been marked as a duplicate of this issue. ***
Comment 7 prosp4300 2007-08-09 13:49:17 UTC
I also think this feature is needed unless there is no space in the editor toolbar
Comment 8 Miloslav Metelka 2007-08-14 10:08:32 UTC
Reassigning to Hrebejk.
Comment 9 Petr Hrebejk 2007-08-27 16:06:05 UTC
They are back.
Comment 10 KatieBell 2019-07-18 11:21:37 UTC
There is must be a coding error. Once I was working on my college project and over there I experienced exactly this error. I took help with https://www.courseworkonline.co.uk after trying for so long. I got some tips about it too.