tags:

views:

33

answers:

2

Howdy,

i have seen a lot of screencasts where the author is creating methods with the following way:

$myObj = new myObj();
$myObj->getAllMyWhatEver($xyz);

The "getAllMyWhatEver" function is not existing yet, he is clicking some kind of key and the function is created in the proper class.

Does someone knows how to do this in Netbeans??

+1  A: 

Netbeans: Top 10 Netbeans Shortcuts, try alt + insert ( Generate Code )

Filip Ekberg
+1  A: 

You have to select the method and Alt+Enter will give you a list of choices where you can create the method in the corresponding class, surround the selection with //...

or on the left side of your line, you should have a light bulb. Click on it and it will give you the same choices as above.

ccheneson