S. A. Malik
S. A. Malik

Reputation: 3655

NetBeans IDE Code completion shortcut

I have two problems.

First when i type code, netbeans automatically completes the brackets. Now what i need is to move cursor out of brackets to type the semicolon. I have to do it with the right arrow key, but i have seen tutorials in which coders to it faster. Is there some other short key or a way to do it quicker i.e from the keys under my hands?

Second the Netbeans suggestion are quite slow in my machine. Is there a way to make them load faster?

Upvotes: 2

Views: 3789

Answers (2)

nitin
nitin

Reputation: 31

Type the closed backet. Netbeans realizes what's going on and does exactly what you describe.

Upvotes: 0

toto2
toto2

Reputation: 5326

Also, CTRL-; adds a semicolon at the end of the current line, without moving the cursor. The shortcut can be changed: Menu Tools -> Options -> Keymap and search for "Complete line".

There is also in the keymap an option for "Complete line and create new line", which does the same but then puts the cursor at the start of a newly created line below. By default, I had no mapping to it, but I added it as CTRL-SHIFT-;.

Upvotes: 6

Related Questions