O'Reilly logo

PHP Application Development with NetBeans Beginner's Guide by M A Hossain Tonu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the code generator

The editor provides context-sensitive code generators, so as to generate a database connection, constructors, getters or setters, and so on. A specific code generator will appear in the context of cursor location. For example, inside a class, it will display for generating constructors, getters, setters, and so on.

As an example, press Alt+Insert inside a class to open all possible code generators, as shown in the following screenshot:

Using the code generator

We will discuss the following code generators:

  • Constructors: Inside a PHP class (but not inside any method's body), you can open the constructor generator by pressing Alt+Insert. Select Generate ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required