You can use Ctrl+Shift+C to toggle comments.
Note that this will comment the entire line.
If your selection encompasses more than one line, it will comment all those lines, including partially selected lines.
In Java View, I also have two icons - one to comment my selection and another to uncomment it.
swing_developer wrote:
Is there no way to select text and enclose it in a comment , I mean through an action within Netbeans... either under the "edit" menu or some refactoring?
Any ads or links to ads that appear in this post are not endorsed nor recommended by this poster.