Code style for setters

Is there any way to override the default code style for generated setters and constructors? E.G., this is default:

public void setBlah(String blah) {
this.blah = blah;
}

This is what I would like (or something like it):

public void setBlah(String pBlah) {
blah = pBlah;
}

Can this be changed?

2 comments

You can set a code style where all generated parameters are prefixed with "p": "Settings/Code Style/Code Generation/Name Prefix/Parameter". That works with all code generators, not just setters.

--Dave Griffith

0

Heaven sent!! Thanks so much for that . . .

0

Please sign in to leave a comment.