Bug 426311 - [key binding][templates] Tab Key to Insert Code Templates
Summary: [key binding][templates] Tab Key to Insert Code Templates
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 19:56 EST by Roosevelt P CLA
Modified: 2014-01-22 06:05 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roosevelt P CLA 2014-01-21 19:56:26 EST
Hi,

This is both an enhancement request and also a bug report. This may have been requested by others but since it is not part of the Eclipse yet, I fear it may have been shot down before.

Anyhow, any major IDEs nowadays support code templates with tab key. Very simple, you enter "ae" and press "Tab" and the editor expands to "Assert.assertEquals("", "");"

But in Eclipse you have to activate Code Assist, do the same until you reach the Code templates list, choose your short-cut and then Eclipse enters the template. This way you defeat the whole purpose of code templates. Reduce Keystrokes to its bare minimum is the goal :)!

And the other thing is... if I assign the "Tab" key to Content Assist trigger, now on the editor, when I press the Tab key, the tab key no longer works!

Tab keys for code templates/completions are the standards nowadays, I feel eclipse must add/fix/improve this feature for the developers.