File Templates Configured Per Project

By default when you surround an unhandled exception with try catch block IDEA inserts the following

e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.



Is it possible to make this a per project setting?

e.g. for one project I might want:

Log.error("Log Category", ${EXCEPTION});



And for another I might want:

System.err.println(${EXCEPTION});



you get the idea.
1 comment
Comment actions Permalink

Hello opticyclic,

This has been a very, very long-standing feature request; the answer is unfortunately
still "no".

By default when you surround an unhandled exception with try catch
block IDEA inserts the following

 change body of catch statement use File | Settings | File
> Templates.]]>


Is it possible to make this a per project setting?

e.g. for one project I might want:

 ${EXCEPTION});]]>

And for another I might want:


you get the idea.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.