Changing "Suround with..." templates

From the Code menu, you can select "Surround with..." which allows you to surround code with prebuilt templates. Is there any way to change these templates? Specifically, I'd like to change the variable name for the exception in an inserted try/catch block.

Thanks.

2 comments
Comment actions Permalink

On 23-04-2004 19:47, Scott wrote:

I'd like to change the
variable name for the exception in an inserted try/catch block.


I don't think you can do that. There is a template for filling the body
of the generated catch statement however: Options > File Templates in
the Code tab.

Bas

0
Comment actions Permalink

I could have sworn that there was a place in IDEA settings to specify the
preferred names to use for Exceptions, loop variables, and other arbitrary
variable names. However, I can't seem to find it in the current build. I
may be thinking of another IDE (if there really are any others...I think
not) or it may have been removed since version 2.5 or 3.x.

Tim

"Bas Leijdekkers" <leijdekkers@no.spam.please.carp-technologies.nl> wrote in
message news:408CC8DB.8020603@no.spam.please.carp-technologies.nl...

On 23-04-2004 19:47, Scott wrote:

I'd like to change the
variable name for the exception in an inserted try/catch block.

>

I don't think you can do that. There is a template for filling the body
of the generated catch statement however: Options > File Templates in
the Code tab.

>

Bas



0

Please sign in to leave a comment.