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 250432 - Complete <> automatically
Summary: Complete <> automatically
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-15 09:57 UTC by markiewb
Modified: 2015-02-21 14:19 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Screenshot of contexts (66.01 KB, image/png)
2015-02-21 14:19 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2015-02-15 09:57:14 UTC
EXPECTED: Type "List<" and NB automatically adds the closing > and sets the caret within the tags. That means "List<|>", where | is the caret
Comment 1 markiewb 2015-02-21 14:19:57 UTC
Created attachment 152131 [details]
Screenshot of contexts

I guess this has to be fixed in 
java.editor/src/org/netbeans/modules/editor/java/TypingCompletion.java

but this must be context-sensitive, so that "1 <" is not completed to "1 <>"

See the screenshot for context.