Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6439

Java code formatting doesn't work as expected anymore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 12.6
    • None
    • cnd - Editor
    • None

    Description

      By editing a java class the alignment while coding the body of a method do not work anymore as expected.

      For instance, if I write the following code and I want to fill up the body of the method I usually put the cursor after the { curly bracket and I press Enter, then the IDE should create a new row and put the cursor inside the body using the right indentation.  This behaviour has been lost into this Netbeans release...  the cursor is placed at the beginning of the row without indentation

          public void test()

      {    // PRESS ENTER HERE TO TEST *     }

      Another unexpected behavious is that starting on an empty row (at col 0) it is not possible to write a Tab character for forcing the indentation.  This worked before.

      Another issue is also available when adding the method comment using the comment completion that it is usually triggered by the /** characters written on top of the method... again here the behaviour has changed... the comment is created without indentation and even its internal formatting doesn't work anymore (e.g. a new line inside the comment should be created with a '*' char in the beginning and the right indentation.

       

      I think you need to make a regression, too many features of the IDE has been lost...

      Attachments

        Activity

          People

            Unassigned Unassigned
            Cistox Roberto Cisternino
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: