简体   繁体   English

Eclipse快捷方式来接受带有附加的同名小写起始变量的类型建议

[英]Eclipse shortcut to accept type proposal with appended same-name lowercase starting variable

Is there a way, to create a attribute/method parameter/local variable by type, with same name as type starting with lowercase letter? 有没有一种方法可以按类型创建属性/方法参数/局部变量,其名称与以小写字母开头的类型相同?

Example: 例:

  1. Redi [ctrl+space], and " RedirectAttributes " type is proposed Redi [ctrl + space]和“ RedirectAttributes ”类型

  2. [magic shortcut] [魔术快捷键]

  3. IDE inserts: RedirectAttributes redirectAttributes IDE插入: RedirectAttributes redirectAttributes

If not, where should I start to implement such code completion plugin? 如果没有,我应该从哪里开始实现这种代码完成插件?

Press Ctrl+space after the type is added. 添加类型后,按Ctrl+space

PrintWriter -> Ctrl+space proposes printWriter

If a different shortcut is needed, then you would have to implement it. 如果需要其他快捷方式,则必须实现它。 This link explains how to provide a custom keyboard shortcut. 此链接说明了如何提供自定义键盘快捷键。

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

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