This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 231481 - Show hint after `}` what does it belong to
Summary: Show hint after `}` what does it belong to
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal with 1 vote (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2013-06-19 05:09 UTC by pekarna
Modified: 2013-11-25 14:38 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description pekarna 2013-06-19 05:09:06 UTC
In Java, it's usual to have } as a single character at a line.

If it's too far from the matching bracket, one can easily get lost.

Many dev's tend to write hints like this:

    class Foo {
    }// class Foo

It would be awesome if NetBeans shown a hint like this; probably with some minimum limit how many lines from the starting brackets it has to be.

This would be also cool for nested conditions, cycles;
And for cycles and labels, it could also appear after `break;` and `continue;`

Thanks for considering.
Comment 1 Jiri Prox 2013-06-20 12:52:50 UTC
Now in 7.4 if the opening brace is out of the screen, the popup is shown, displaying the line with opening bracket.
Comment 2 Svata Dedic 2013-11-25 14:38:05 UTC
I consider this enhancement as implemented (see comment #1)