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 129278 - Any Code Template in the code completion
Summary: Any Code Template in the code completion
Status: RESOLVED DUPLICATE of bug 184604
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 144280 152154 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-05 13:23 UTC by Petr Dvorak
Modified: 2013-03-03 23:20 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 Petr Dvorak 2008-03-05 13:23:33 UTC
Product Version: NetBeans IDE Dev (Build 200803050006)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: SunOS version 5.11 running on x86; UTF-8; en_US (nb)

If you type "wh" in the editor and press Ctrl+Space, a list of suggestions (of "while" cycle types) based standard
abbreviations is displayed.

But the question is - is the "standard" also "desired" in this case? A user should be allowed to choose which
abbreviations are included in the hints (and for example what is the default order of the hints).

It should be possible to assign a flag to each abbreviation saying if it is included in the code completion hints (maybe
check-boxes in the rows of table in Tools>Options>Editor>CodeTemplates for the beginning?).
Comment 1 Vitezslav Stejskal 2008-03-06 09:52:02 UTC
Yes, we definitely want something like this and the infrastructure is ready. We just don't have the UI. Moreover, in
java files for example there are several different contexts depending on where in the file you are and it would be nice
if code templates could be enabled disabled for those contexts. Example, it makes no sense to allow 'sout' template
outside of code block.
Comment 2 Petr Dvorak 2008-08-18 16:41:03 UTC
*** Issue 144280 has been marked as a duplicate of this issue. ***
Comment 3 markiewb 2012-12-08 12:17:42 UTC
*** Bug 152154 has been marked as a duplicate of this bug. ***
Comment 4 markiewb 2012-12-17 18:52:56 UTC
Set target-milestone of open issue to TBD (was < 7.3, f.e. 6.8), so the issue doesn't get lost.
Comment 5 markiewb 2012-12-17 19:03:05 UTC
Set target-milestone of open issue to TBD (was < 7.3, f.e. 6.8), so the issue
doesn't get lost. This time the target milestone is really set.
Comment 6 markiewb 2013-03-03 23:20:19 UTC

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