Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Annoying XML Comments: NetBeans IDE Plugin

DZone's Guide to

Annoying XML Comments: NetBeans IDE Plugin

· Java Zone ·
Free Resource

Download Microservices for Java Developers: A hands-on introduction to frameworks and containers. Brought to you in partnership with Red Hat.

Commenting XML ... you have to write "<!--" and then "-->" ,if you have to write some large doc, and want it be well commented, you'll get really bored by typing four chars just to start comment block.

I was little frustrated by the fact there is no tool(well there is as a hint but i like key shortcuts) in my beloved NetBeans IDE to comment/uncomment whole block of text (like the Java editor has), so i wrote it down.

EDIT: It's useless "Ctrl-/" does the same for XML. See official short-cut list, its hidden in "Coding in Java" but works for many other file types.

Download it for free right here:

http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=35608

It's simple, select text which you want to comment, right click for context menu and select "XML Comment" like the figure below shows.

Context menu

Download Building Reactive Microservices in Java: Asynchronous and Event-Based Application Design. Brought to you in partnership with Red Hat

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}