Rene
Rene

Reputation: 1204

Is there a shortcut in Netbeans to create a method?

Is there a shortcut in the Apache Netbeans IDE (e.g. for PHP) to create a method (with inputs etc.) like in Visual Studio, as shown in the following answer:

Is there a shortcut in Visual Studio to create a method?


Visual Studio example

IDE hint:

enter image description here

The VS shortcut generates a method like this:

    private static void MySomeMethod(int a, string b)
    {
        throw new NotImplementedException();
    }

Sorry, I copied the infos from the answer to explain my question, because I don't have Visual Studio on my current PC.

Upvotes: 0

Views: 248

Answers (2)

romaind
romaind

Reputation: 461

ALT + Enter works for me (tested on Linux)

ALT+Enter

generated code

Upvotes: 2

Rohan Bari
Rohan Bari

Reputation: 7726

Unfortunately, there's no code snippet or such shortcuts for generating a method stub available in Apache NetBeans IDE yet. Rather, there are many advantages available in it which aren't in Visual Studio and vice versa.

Upvotes: 1

Related Questions