Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 50899

Summary: [Formatter] wrap of endline comment
Product: [Eclipse Project] JDT Reporter: Sebastian Davids <sdavids>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Sebastian Davids CLA 2004-01-29 14:28:29 EST
There should be an option to not wrap endline comments.

@@ Test case - 3 lines @@

    void endlineComment() {
        System.out.println("            ");
//veeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeery endline comment
    }

@@ after format -- 4 lines @@

    void endlineComment() {
        System.out.println("            "); //veeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeery
                                            // endline comment
    }

@@@@

This is related to bug 50896 but both are to be handled seperately.
Comment 1 Olivier Thomann CLA 2004-01-29 17:28:26 EST
I don't format the comments, except aligning the starting '*'. This will be
changed if I get a chance to work on it.
This might be related to comment formatting performed by JDT/Text.
Move to JDT/Text for comment
Comment 2 Tom Hofmann CLA 2004-01-29 17:35:42 EST

*** This bug has been marked as a duplicate of 47620 ***