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 230904 - The bracket matching popup for out-of-sight brackets should be able to show more than one line.
Summary: The bracket matching popup for out-of-sight brackets should be able to show m...
Status: RESOLVED DUPLICATE of bug 242868
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-07 09:27 UTC by mfritsche
Modified: 2016-02-16 05:03 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mfritsche 2013-06-07 09:27:06 UTC
It would be nice if the new popup of the improved bracket matching function in NB7.3 (http://wiki.netbeans.org/NewAndNoteworthyNB73#Bracket_Matching) could show more than just the line with the opening bracket. If you are looking at code like


Foo::Foo():
        bar(200)
{
    doSomething();
    doMore();
...
}

and place your cursor at the last line it would be nice to see not just the "{" but also the lines above.
Comment 1 PrplHaz4 2013-07-16 18:33:31 UTC
It would be great to at least show the other line - PHP fig standards PSR-0, PSR-1 and PSR-2 all indicate usage of braces on their own line in multiple instances.

"Opening braces for classes MUST go on the next line, and closing braces MUST go on the next line after the body."

"Opening braces for methods MUST go on the next line, and closing braces MUST go on the next line after the body."

"Opening braces for control structures MUST go on the same line, and closing braces MUST go on the next line after the body."

It doesn't need to be too advanced - simply showing the line above if only a "{" is detected should suffice for most use cases.

https://github.com/php-fig/fig-standards/tree/master/accepted
Comment 2 Svata Dedic 2013-07-16 21:07:47 UTC
This is actually now possible, because I've added relevant SPI to brace matching in 7.4; but only implementation for java editor exists at the moment. Passing to PHP for evaluation
Comment 3 Yankes 2014-02-02 15:20:13 UTC
(In reply to Svata Dedic from comment #2)
> This is actually now possible, because I've added relevant SPI to brace
> matching in 7.4; but only implementation for java editor exists at the
> moment. Passing to PHP for evaluation

Will be possible do same for C/C++?
Comment 4 junichi11 2016-02-16 05:03:39 UTC

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