Community
Participate
Working Groups
It would be nice if there are options to format the auto generated variables such as - date format - default format of 'Mon d, yyyy' shall be changed into 'Mon.dd. yyyy' - 'method_arguments' variable shall be customized to include the exact declaration statement like 'int from, int to' rather than 'from, to'. This would be of much use in logging.
Can you please provide a code example ?
1. /** * @author pRasanna * @date ${date} * @since Foo 1.0; ${date} */ The above code generation template pattern results in the following comment being generated for java classes. /** * * @author pRasanna * @date Sep 7, 2004 * @since Foo 1.0; Sep 7, 2004 */ But which we actually edit as following to go with the coding standards of our concern. /** * * @author pRasanna * @date Sep.07.2004 * @since Foo 1.0; Sep.07.2004 */ 2. final String LogSourceMethod = "${enclosing_method} (${enclosing_method_arguments})"; An code completion template(Java Editor template) with a pattern as above results as following for a method "public void doPost(HttpServletRequest request, HttpServletResponse response)" final String LogSourceMethod = "doPost(request, response)"; which we actually would want as final String LogSourceMethod = "doPost(HttpServletRequest request, HttpServletResponse response)"; or final String LogSourceMethod = "doPost(HttpServletRequest, HttpServletResponse) "; These are just few of the scenarios wherein a particular organization standards can be incorporated for the auto generated/auto completed code too. Hope this suffice. tx pRasanna
The date is taken from your regional settings of your OS. There are currently no plans to further configure this. You can set your computer to match your concern's coding standard.
Get rid of deprecated state.