简体   繁体   中英

How to increase priority of template proposals in Eclipse?

I am using Eclipse Indigo,I have created a template proposal by the name Connection (Similar to java.sql.Connection). This proposal, through additional comments, would prompt developer of any possible vulnerabilities that may occur using java.sql.Connection.

Is there any way to increase the priority of template proposal so that when I type ctrl+space my proposal, Connection , would be on top of eclipse's Connection proposal?

If you type Ctrl+Space+Space , Eclipse should display only your Template Proposals.

This "Content Assist Cycling" behaviour is configured in Window > Preferences > Java > Editor > Content Assist > Advanced .

Alternatively, rename your template to connection with a lowercase c , and it should appear at the top of the list.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM