I use Netbeans 7.2.1, when I type private String a
(Java code), the IDE shows a tip window aString
which asks me to name a variable with its type as postfix. In addition, when I continue to type ;
, it completes the code with private String aString;
. Actually, I do not like this naming style, so, how to change the settings?
Asked
Active
Viewed 1e+01k times
17

PinkyJie
- 817
- 3
- 8
- 28
3 Answers
44
For windows :
- Go to Tools
>
Options>
Editor>
Code Completion - Select Language Java from dropdown
- Auto pop-up on typing any Java identifier part
You can take help from the images below:

Raz Luvaton
- 3,166
- 4
- 21
- 36

Sadhon
- 674
- 7
- 11
-
I have the default values (.;->;.*;->*;::;new ;) set for triggers and the check-box for "auto Insert #include Directives". These values do not work with defined variables and functions. Is there a way for code assistant to also pop for variables and functions? The variable does appear in the list when I key in ctrl + space. – supmethods Dec 28 '18 at 05:26
17
Under Preferences -> Editor -> Code Completion
is where you can find the auto complete properties. You can disable the 'Auto Popup Completion Window' to keep it from automatically popping.
You can bring up the auto complete popup with the hotkey: control+space
Also while the completion window is displayed, pressing the esc
will close it without inserting an autocomplete value.

kfaerber
- 1,327
- 8
- 10
5
Go to: Preferences -> Editor -> Formatting.
In the drop-down box "Language", choose "Java".
There are many other categories you can choose from and you can customize your code formatting style there.

melvynkim
- 1,655
- 3
- 25
- 38
-
any details? I do not wanna close the tip, just ignore this type of tips – PinkyJie Mar 11 '13 at 03:58