Search code examples
phpnetbeans

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.


Solution

  • 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.