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:
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 Constructor, and a dialog box similar to the following screenshot will appear:
The window comes with a list of available fields that you can initialize in the constructor. Field names are used as parameters of the constructor. You can decide not to select any fields; an empty constructor will be generated in such a case.
Getters and setters...