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

Opening brace popup doesn't always show statement associated with opening brace

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      When positioning the cursor on a closing curly brace of a method

      }

      If the corresponding opening statement is off the screen Netbeans will show the corresponding opening brace with its associated statement even if they are on separate lines

      e.g.

      void myLongMethod()
      {

      Very useful

      However, for "if/while/for" statements (and maybe others) Netbeans only shows the opening brace

      {
      

      This gives no useful information about what the braces are for.

      If the opening statement and brace are on the same line, they are shown in the popup

      if (someCondition) {

      This should work for both styles of code format

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jgawera Jas Gawera
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: