Hippie Completion

I read in Cendric Beaust's blog that the latest Eclipse snapshot now has "hippie completion". This is an editor feature where you press a keybinding and the editor automatically completes the word you're typing for you, by searching around in your current document (and if not found) in other documents.

NetBeans has had this feature for at least five years. Since Creator is built on top of NetBeans, you'll find it in Creator too.

Hippie completion is also known as hippie expansion and originated in Emacs. See for example the XEmacs documentation.

It is bound to Ctrl-K (and on the Mac, Command-K). Go ahead and try it - it's the best way to figure out how it works. If the word you want to complete has many possible matches, hit Ctrl-K repeatedly to cycle through the matches. For example, in a typical Creator file, if you type "Ht" and hit Ctrl-K, it's going to offer HtmlCommandButton, HtmlOutputText, etc. if you have buttons and text components on the page. Now aren't you glad you didn't have to type that?

While I'm on the topic of editor shortcuts, another feature you may not know about it "Go Back". Let's say you've jumped around in your editor files, by clicking on error links in the output window, or by using "Go to declaration" (alt-g if I remember correctly), etc. You can "Go Back" just like in a browser by hitting Alt-K. And to move forward again, hit Alt-L. (And yes, these have toolbar buttons in Creator, and in recent NetBeans 4.1 builds as well.)

Comments:

Hi! What is the name of the real action for Hippie Completion in Netbeans? (I have remapped a lot of shortcuts and I am absolutely sure I have overridden the default Ctrl + K, forgetting about it - there are almost 3 years from my last Netbeans usage). cheers, -- :alex |.::the_mindstorm::.|

Posted by Alex Popescu (aka the_mindstorm) on April 03, 2005 at 05:46 PM PDT #

It's "Previous Matching Word" [word-match-prev]

Posted by Tor Norbye on April 04, 2005 at 10:59 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

Tor Norbye

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today