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.
Created attachment 130324 [details] uninformative tooltip when braces convention is Allman style Hi, I'm satisfied with new brace matching tooltips, but it pointlessly for Allman braces convention ( http://en.wikipedia.org/wiki/Indent_style#Allman_style ). When highlighting last brace for following block: if (isset($work->start_date) && $this->isDateValid($work->start_date)) { $dateFrom = array( 'year' => substr($work->start_date, 0, 4), 'month' => substr($work->start_date, 5, 2), 'day' => '01', ); } I see in tooltip: " {" (see the attachment) Environment: Product Version: NetBeans IDE Dev (Build 201301170001) Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18 System: Linux version 3.6.11-1.fc17.x86_64 running on amd64; UTF-8; en_US (nb)
It's not PHP feature. It's handled by whole editor infrastructure. Imho they simply shows a "line" where a matching brace is.
My suggestion is that the infrastructure should check whether there is a non-ws character right before a brace on the brace line and if not, check preceding line in the same manner until first non-ws char is found. Then prepend that line right before the matching brace.
A good suggestion. Will the tooltip include the "// Verbosity is ON" comment too? if ($isVerboseMode) // Verbosity is ON { } What happens in case the statement block is multi-line? if (isset($school->concentration) && is_array($school->concentration) && 0 < count($school->concentration)) { }
Already filed as 217730, please comment there. *** This bug has been marked as a duplicate of bug 217730 ***