TaT ContextSensitiveCodeCompletionNB

Context sensitive code completion in NetBeans

Contributed by: Hubert A Klein Ikkink

Reposted from this blog entry: http://mrhaki.blogspot.com/2008/09/context-sensitive-code-completion-in.html

Tips and Tricks

Working with the NetBeans Java editor is such a joy. Recently I discovered that code completion is context sensitive. When we create a new variable and press Ctrl+Space after the new keyword we get a list of classes in alphabetical order. But notice the classes which are extended from the base class are at the top of the list. The following screenshot shows all allowed classes for the variable with base type java.lang.Number:


Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo