[英]Ctrl 2 refactorings in Eclipse / STS
I read on the blogs about Eclipse's quick assist shortcuts and went ahead to try them out, however only 2 out of the 4 work for me. 我在博客上阅读了有关Eclipse的快速辅助快捷方式的信息,并继续尝试它们,但是4种方法中只有2种对我有用。
When I hit Ctrl+2, STS displays a hint with all 4 of them explained in the right bottom corner: 当我按Ctrl + 2时,STS将显示一个提示,并在右下角说明所有这4个提示:
Ctrl+2, L - assign to local variable Ctrl + 2,L-分配给局部变量
Ctrl+2, M - extract method Ctrl + 2,M-提取方法
When I then hit a letter, the expected behavior only works for the last 2 (extract and rename), and not for the first 2 - F and L - to assign to a field or a local variable. 然后,当我碰到一个字母时,预期的行为仅适用于后2个(提取和重命名),而不适用于前2个-F和L-分配给字段或局部变量。
What am I doing wrong? 我究竟做错了什么?
Here's what I see in Eclipse's General | 这是我在Eclipse的General中看到的内容。 Keys Preferences:
按键首选项:
See Eclipse Preferences General -> Keys page. 请参阅“ Eclipse首选项常规->键”页面。 Perhaps the first two key bindings are mapped to some other actions.
也许前两个键绑定已映射到其他一些动作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.