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 61974 - Separate abbreviation lists for comments, Java, JSP and HTML.
Summary: Separate abbreviation lists for comments, Java, JSP and HTML.
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 5.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-09 12:39 UTC by gugrim
Modified: 2010-06-28 14:17 UTC (History)
0 users

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 gugrim 2005-08-09 12:39:06 UTC
Most abbreviations are useful only in code, some only in comments. Now that
issue 16310 is fixed we can no longer use abbreviations in comments. While I
think that this is an improvement I do miss the ability to use my abbreviations
for "<code>|</code>", "{@link #", etc. Using separate lists was suggested by
janicki in a comment to issue 16310 but this was never implemented. Starting off
with two separate lists (comments and Java code) would be great. Later on
perhaps additional lists for JSP and HTML could be added.
Comment 1 Jiri Prox 2006-06-06 13:25:48 UTC
Each type of editor has now in 5.5 it's own set of abbreviation.
Comment 2 gugrim 2006-06-06 18:47:32 UTC
I dont think I was clear enough in my original enhancement description. What I
mean is that abbreviations for different languages should be available depending
on the context, i e if the cursor is inside a comment in a Java source, the
abbreviations associated with HTML should be available, or a new "language"
perhaps called "Java Comments". The same goes for jsp files. Normally the HTML
abbreviations should be used, but inside a script section the Java abbreviations
should be used instead.

In other words, the language from which the abbreviations should be accessed
should not only depend on which kind of file you have open but also on the
context. Since the Java editor manages to disable all Java abbreviations inside
a comment, detemining the context seems to be already in place.
Comment 3 Vitezslav Stejskal 2010-06-28 14:17:40 UTC
I believe this has been fixed in recent versions.