如何在Eclipse中创建jsp时自动写入auther name创建日期有没有适合我的快捷方式或模板
在java文件中,我们注释@author来写出作者的名字(即)
/**
@auther xyz
*/
但是,用JSP编写它的可能方法是什么呢
我想写在下面的选项
Author:xyz
Document:xyzd.jsp
Created Date:22th sep 2013
发布于 2014-11-07 15:32:14
您可以在下更改jsp文件格式,
Window -> Preferences
或者更简单的是,
在创建新jsp时单击jsp templates链接进行编辑
发布于 2014-11-07 15:35:35
在eclipse中,您必须创建一个新的jsp模板并创建一个新的template.For新模板:单击Windows>Preferences>Web>JSP Files>Editor>Templates。
创建一个新模板,然后根据约定指定您的pattern there.As:
<%-- - Author(s): - Date: - Copyright Notice: - @(#) - Description: --%>
https://stackoverflow.com/questions/26796036
复制相似问题