配置Eclipse字边界,以便'Next-Word-Key'跳过整个标识符 [英] Configure Eclipse word-boundaries so 'Next-Word-Key' skips whole identifier

查看:130
本文介绍了配置Eclipse字边界,以便'Next-Word-Key'跳过整个标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有一段代码

 
MyIdentifierIsNice(OtherThingAlsoNice isBetterThen);

我想在Eclipse中更改 Ctrl-Left 的行为:

 
我的|标识符| Is | Nice |(|其他| Thing |另外| Nice is | Better | Then |); |







MyIdentifierIsNice(| OtherThingAlsoNice | isBetterThen); |

...或者至少不是那么频繁。其他变体也可以,如:

 
MyIdentifierIsNice |(| OtherThingAlsoNice | isBetterThen |); |

主要是应该停止考虑一个 CamelCaseIdentifier 组成的几个单词,以便通过下一个字等等。



我使用SpringSourceSuite 版本2.5.1,这是Eclipse 3.6

解决方案

尝试取消选择选项:

 首选项/ Java / Editor / Java名称中的智能插入位置



并且看看是否增强了光标定位方面的用户体验。



如果这不是Java ,那么你有一个类似的选项: / p>

 首选项/一般/编辑/文本编辑器/行开始和结束时的智能插入位置

通常选择,这意味着如果游标仍然停留在每个单词,那可能会估计另一个特定语言的设置是覆盖它。


If I have a piece of Code

  MyIdentifierIsNice(OtherThingAlsoNice isBetterThen);

I'd like to change the behavior of Ctrl-Left in Eclipse from stopping here:

  My|Identifier|Is|Nice|(|Other|Thing|Also|Nice is|Better|Then|);|

to here:

  MyIdentifierIsNice(|OtherThingAlsoNice |isBetterThen);|

...or at least just not so often. Other variants would be also fine, like:

  MyIdentifierIsNice|(|OtherThingAlsoNice| isBetterThen|);|

Mainly it should stop considering a CamelCaseIdentifier to consist of several words for navigation via Next-Word, and such like.

I use SpringSourceSuite Version 2.5.1, which is Eclipse 3.6, I guess.

解决方案

Try and unselect the option:

Preferences / Java / Editor / Smart caret positioning in Java names

And see if that enhances the user experience in term of cursor positioning.

If this is not Java, you have a similar option in:

Preferences / General / Editors / Text Editors / Smart caret positioning at line start and end

It is usually selected, meaning if the cursor still stops at every word, that may suggests another setting for a specific language is overriding it.

这篇关于配置Eclipse字边界,以便'Next-Word-Key'跳过整个标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆