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

Key: IDEA-18716
Type: Bug Bug
Status: Open Open
Assignee: Olesya Smirnova
Reporter: Serge Baranov
Votes: 0
Watchers: 0
Operations

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

Multiple bugs in right column margin reformat code support

Created: 11 Jul 08 14:39   Updated: 06 Aug 08 17:54
Component/s: Code Formatting and Code Style

Build: 7,757
Severity: Medium


 Description  « Hide
Support feedback:

I have set right column margin in my project to 80 columns.
IntelliJ does not respect this setting in many ways.
It sticks to code where on or two symbols are over margin.

I will mark right margin by using || symbol

1) One-line java-doc comment with */ that is after right margin.
/** Here is one-line java-doc comment ||*/
It does not wrap into two lines. Even more, if I wrap myself it wraps back to one-line comment.
Workaround: change comment to make it longer or shorter.

2) = symbol on the end of a veriable declaration.
public static final Map<LongType,LongType> longVariableName ||=
variableValue;
But if I manually move longVariableName to the next line it just works as expected and does not wrap back.
Workaround: move variable name to separate line.

3) class names in java-doc comments.
/** Here is some java-doc text, that

  • is linked to {@code com.too.long.||package.Class}
    */
    It does not want to wrap {@code declaration to its own lone.
    Even more, if I move it to the separate line, it wraps it back.
    Workaround: change comment to move {@code over the right column margin boundary.

4) One-line comments.
// TODO(myself): I should update something here ||and there
They does not wraps, does not converts to /* */ comments.
Workaround: make comment shorter, create two-line comment instead.
Idea: may be this was intended!



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.