In Eclipse (version 2021-09) I woudl like to use the sysout tempalte in teh scriplet area of a JSP page.
So, in my JSP editor I have:
...
<%
...
[cursor here]
...
%>
...
When I now type sysout
how can I make it expand to System.out.println("[cursor here]");
?
I tried a new JSP template like this:
But it does not work inside the scriplet tags.
PS: I saw the question sysout in JSP eclipse - Stack Overflow , but the answers do not cover the case inside the scriplet tags. *
go to the preferences --> Java --> Editor --> Content Assist at the bottom: "auto activation triggers for Java" put in:
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ._
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.