views:

1382

answers:

10

Following the topic http://stackoverflow.com/questions/98220/what-is-your-favorite-hot-key-in-eclipse , what is your favorite hot-keys in Netbeans?

A: 

For me it's

  • CTRL-shift-F (find in projects)
  • Ctrl-E (delete line)
  • alt-shift-F (format code)
Ace
+1  A: 

Ctrl + R (Rename)

blizpasta
+2  A: 

Control-K and Control-L - Auto complete by matching to most recent in buffer... completely different than Control-Space and probably the fastest auto-complete on the planet.

James Schek
Wow, I gotta check that out :D
Ace
Been using these for a few days now, and wow! They're really awesome.
Ace
Glad to be of help.
James Schek
You should try auto completion in IntelliJ (I know it's not relevant to the topic).
Colin Hebert
I'm pretty sure it's changed to Ctrl+K, Ctrl+SHIFT+K in version 6.9.
Ben Noland
+3  A: 

Ctrl + Shift + I (fix class imports).

Bill the Lizard
Yeah, this is a good one.
Ace
A: 

How does the Fix class import works, is it like the eclipse Ctrl + Shift + O ?? i don't like to search for library names.

I like to write LinkedList a; and press CT+SH+O and the library is imported. And Ctrl + Shift + I doesn't seem to work like that.

A: 

This's topic very helpful with me because I just install Netbean with ubuntu in may notebook so I wonder how to duplicate a line like ctrl+D in notepad++ in netbean?

gacon
I don't have netbeans installed right now, so my memory may be wrong, but I think it's ctrl-shift-up or down, depending on if you want the line to be duplicated above or below. Let me know if it works .)
Ace
yeah I've just test it on netbean it's work fine. Thank you!!
gacon
Yeah It's work thank alot!
gacon
A: 

ALT-SHIFT-F (format code)

Ben Noland
A: 

Alt-F4

I was so happy when I didn't have to use Netbeans anymore and could use Eclipse.

PSU_Kardi
A: 

jVi plugin (vi mode)

ubuser
A: 

Several I use all the time (for PHP):

  • Shift + Delete - cut current line
  • Ctrl + B - jump to function/method/class declaration
  • Ctrl + Shift + Up/Down arrow - copy current line Up/Down
  • Ctrl + P inside function/method brackets - displays what parameters does the function/method take
  • Ctrl + G - jump to line
  • Ctrl + H - search/replace - love the regex search/replace
  • Ctrl + Shift + C - comment
robertbasic