History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-2421
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Olesya Smirnova
Reporter: Pat Niemeyer
Votes: 3
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Basic line wrapping or formatting in block comments...

Created: 13 Jun 05 20:25   Updated: 26 Jun 07 17:35
Component/s: Code Formatting and Code Style
Fix Version/s: Undefined

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Duplicate
 
This issue is duplicated by:
IDEA-13431 Feature: rewrap text Closed

Build: 3,354


 Description  « Hide
It seems that there should be some, at least minimal, ability to wrap long lines in block comments to the page width.

I believe that the AutoFormat plugin is supposed to do this, however it is broken with the EAP builds and this seems like something that is really fundamental and perhaps should be part of the core.

thanks,

Pat Niemeyer
Author of Learning Java, O'Reilly & Associates and the BeanShell Java Scripting Language



 All   Comments   Work Log   Change History      Sort Order:
Ken Arnold - 01 Mar 06 19:36
I really want this added. Formatting a block comment by hand is really painful, and javadoc comments are formatted. They aren't the same, but they're similar enough that it feels frustrating. I've been known to change a block comment into a javadoc comment, reformat, then undo that. Of course to do that I have to have an identifier declared at the same indentation level as the block comment because javadoc comments do not reformat unless they are actually above an identifier. So I only do this rarely.

Obviously these are not identical to javadoc comment text, mostly noting the absence of HTML directives. But otherwise the same formatting would apply – just take blank lines to mean blank lines, not new "<p>" directives. Just preserve my comment leader and that's fine.

I would think that if this is done, also formatting blocks (or selected sets of) standalone block comments would be easy to include. It's just a different comment leader at some level. Lots of folks use successive lines of "//" comments instead of "/.../" comments.