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 218403 - [73cat] braces outline only works when selecting a brace, but not from within braces
Summary: [73cat] braces outline only works when selecting a brace, but not from within...
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-15 00:33 UTC by markiewb
Modified: 2016-07-10 18:06 UTC (History)
2 users (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 markiewb 2012-09-15 00:33:15 UTC
braces outline only works when selecting a brace, but not from within braces

The new feature brace-outline (#45884, #30234) on the left side of the editor (see http://www.pellissier.co.za/hermien/wp-content/uploads/2012/08/brackets-dev.png) is only activated when the caret is at the begin- or end-brace. 

But it should also work when the caret is WITHIN the braces.

Working examples
a)
if (true)
{[caret]
   //nop
   //nop2
}

b)
if (true)
{
   //nop
   //nop2
}[caret]

Non working examples - which are expected to work, but they didn't
c)
if (true)
{
   //nop
   [caret]
   //nop2
}

d)
if (true)
{
   //nop
   //nop2
   [caret]
}


NB73DEV 201209110001
Comment 1 Svata Dedic 2012-09-15 08:59:49 UTC
It really depends, possibly even on a personal preference. Now it works 'as desinged' - I decided not to show the brace all the time, since it adds a little unnecessary clutter to the UI. I choose to activate the brace outline on a user gesture, and navigating to start or end brace of the block the user wants to inspect seemed quite natural. Possibly a 'outline brace' action + shortcut could be created. 

CC:ing Petr Somol for UI evaluation.
Comment 2 Svata Dedic 2015-04-07 09:31:58 UTC
I'll try to add an explicit action to display the outline.
Comment 3 Martin Balin 2016-07-07 07:26:41 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 4 markiewb 2016-07-10 18:06:38 UTC
Still valid in 8.2 dev 
Product Version: NetBeans IDE Dev (Build 201607100002)