Tomkarho
Tomkarho

Reputation: 1817

Changing NetBeans auto-generated code

NetBeans has some great features in it like auto-generating code. However there are some things missing which I would like to change. One of my practises is to add comments to the generated code telling me what it is. For example say that I am writing in php and auto generate a constructor for an object. The end result would be auto generated like this:

function __construct(){};

However what if I wanted NetBeans to generate comments alongside it like this:

//constructor
function __construct(){};

Is it possible to change something in NetBeans to make this happen? Templates maybe? And if so which template file and how should I change it to suit my needs?

Upvotes: 0

Views: 946

Answers (1)

Evi Iak
Evi Iak

Reputation: 58

You can go to Tools->Options->Editor->Code Templetes.
You choose language php.
There you can see the templates. You can change them or add yours.

Upvotes: 3

Related Questions