简体   繁体   English

如何提高Eclipse中模板提议的优先级?

[英]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). 我正在使用Eclipse Indigo,我已经通过名称Connection创建了一个模板提议(类似于java.sql.Connection)。 This proposal, through additional comments, would prompt developer of any possible vulnerabilities that may occur using java.sql.Connection. 此提议通过其他注释,将提示开发人员使用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? 有没有办法增加模板提议的优先级,这样当我输入ctrl + space时我的提议Connection会在eclipse的Connection提案之上?

If you type Ctrl+Space+Space , Eclipse should display only your Template Proposals. 如果键入Ctrl+Space+Space ,Eclipse应显示模板建议。

This "Content Assist Cycling" behaviour is configured in Window > Preferences > Java > Editor > Content Assist > Advanced . 此“内容辅助循环”行为在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. 或者,将模板重命名为与小写c connection ,它应显示在列表顶部。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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