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 138874 - Comment and uncomment feature in xml source editor
Summary: Comment and uncomment feature in xml source editor
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-02 23:14 UTC by remisb
Modified: 2012-05-28 13:45 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description remisb 2008-07-02 23:14:28 UTC
Would be very nice to have a possibility to do "comment" and "uncomment" in xml editor. 
Currently this feature is implemented in Java code editor but does not work in xml editor. Taking in account huge xml usage is java projects as configuration 
tools it would be very wise to keep consistency and fill this gap.
Comment 1 remisb 2008-07-04 16:16:13 UTC
Under NetBeans/Options keymap list there is two actions what does exactly the same, comments and uncomments selected text in xml file. But these 
actions does not have assigned any shortcut. 

Just to note, few new ideas:
1. XML editor has needed functionality but does not reveal it in UI in any way. 
 1.1 These actions are not mapped to any shortcut 
 1.2 These actions are not shown in editor window toolbar
 1.3 These actions are not available from menu
2. I can customize toolbar, but not able to change in any way toolbar in editor window :( . Hard to understand why
3. Actions what performs same functionality but in different context have different names, located under different action categories and have different 
name. I do understand that implementation differs, but from user point of view they are exactly the same but works in different context. This is like to have 
a copy operation for numbers, text, date-time format and anything else. That's too weird

New search box in toolbar somehow helps to solve that problem. Just by typing comment it does suggest solution, it's really nice feature. But still too much 
typing, in this case it's easier just do comment manually by typing <!-- -->.

4. Working on this issue I found a lot of inconsistency in UI, customization, naming  and flows in logic. Taking in account enormous amount of actions 
what are inactive as default it just crying for better accessibility to these actions.

Comment 2 Svata Dedic 2012-05-28 13:45:33 UTC
This was already implemented.