Bug 41171 - Support for code abbreviations
Summary: Support for code abbreviations
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-05 20:26 EDT by Mike Van Noord CLA
Modified: 2007-06-22 10:01 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Van Noord CLA 2003-08-05 20:26:41 EDT
I would love to see Java editor support for code abbreviations, eg. type "sout" 
and the editor automatically replaces it with "System.out.println()".  Netbeans 
has this feature and it is extremely nice.
Comment 1 Dirk Baeumer CLA 2003-08-06 08:04:59 EDT
This feature exists and is integrated into code assist. We call it code 
templates and they can be configured via Preferences->Java->Editor->Templates.
The System... template is called print_out
Comment 2 Mike Van Noord CLA 2003-08-06 09:57:19 EDT
Templates only gets you half way there.  If I have an template which is unique 
in the code completions (eg. "sysout") everything works great.  What I'd like 
to see is some way to make a template override any other matching completions 
(eg. "St" -> "String") so I don't have to open a completions pane, arrow down, 
push enter in order to select the template.  The goal I'm trying to acheive is 
fast, fast, fast so that most common java keywords/phrases can be entered in 4-
5 keystrokes.
Comment 3 Dani Megert CLA 2004-07-26 11:32:05 EDT
Note that once you have two abbreviations, "st" (String) and "stdout" you still
get a list to choose from when you only type "st". 

There are currently no plans to change this.
Comment 4 Dani Megert CLA 2007-06-22 09:59:16 EDT
Get rid of deprecated state.