*
The moose likes IDEs, Version Control and other tools and the fly likes Comment block format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Comment block format" Watch "Comment block format" New topic
Author

Comment block format

Mikpo Siru
Ranch Hand

Joined: Apr 09, 2009
Posts: 54
Hi,

When I hit Source->Format in NetBeans, in turns this:

into this:

Suggestions on a style that doesn't get re-formatted by NetBeans?

Thanks.
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

I have no idea what formatting NB or other IDEs might apply to a given comment form, especially a non-standard one like that, but I'd go with:



But in general you shouldn't need those section markers.

Note that comments that start with /** are interpreted by the javadoc tool, so probably NB is reformatting to fit the more standard

format, where the javadoc marker /** is immediately followed by a newline.

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

When I want block comment like that I use single-line comments:



I don't think the IDE reformats single-line comment.


JBoss In Action
Mikpo Siru
Ranch Hand

Joined: Apr 09, 2009
Posts: 54
Thank you both
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Comment block format
 
Similar Threads
Invalid argument: parameter index 1 is out of range
Seeking for a JSP/HTML auto alignment tool
Code Behind The Scenes
Can i use "static" variable as parameters?
IDE auto generated code...