在 CFEclipse 中双击文本选择
在 CFEclipse 中,我进行了大量的双击来选择文本。 标准行为是选择最近的单词边界内的所有文本。 当原始编辑器不使用驼峰式大小写的情况下编辑代码时,这是有问题的; 例如,他们将“myObject”写为“my_object”。
有没有办法更改双击选择行为以将“_”包含为有效的单词字符?
In CFEclipse, I do a lot of double-clicking to select text. The standard behavior is to select all text within the nearest word boundaries. This is problematic when editing code where the original editor didn't use camel-case; for example, they wrote "myObject" as "my_object".
Is there a way to change the double-click selection behavior to include '_' as a valid word character?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在最新版本的 CFEclipse 中,现在可以选择在双击时定义哪些字符被视为单词边界,还可以选择在使用 Alt 或 Shift 键时使用不同的字符。
在首选项中,转到 CFEclipse > 编辑> 文本选择来更新此:
(来源:bpsite.net)
In the latest version of CFEclipse, there is now the option to define what characters are considered word boundaries when double-clicking, and also the option to use different characters when using alt or shift keys.
In Preferences, goto CFEclipse > Editor > Text Selection to update this:
(source: bpsite.net)
CFEclipse 无法将下划线或句点识别为双击选择文本的字符。 据我所知,除了卷起袖子并破解编辑器代码来更改它之外,没有其他办法了。 我怀疑随着 Adobe 即将发布的 Bolt,这种情况会很快改变。
CFEclipse does not recognize either the underscore or a period as a character for selecting text with a double-click. There is no way that I know of other than rolling your sleeves up and hacking the editor code to change it. I doubt that this will be changed any time soon with the impending release of Bolt from Adobe.
在 eclipse 3.4.1 Ganymede 上,它似乎选择了最近的边界包括“_”(至少在我正在使用的 java 文件中)
您使用的是什么 eclipse 版本?
这个 博客 甚至报告说 eclipse3 .3 确实按照您的预期选择了单词...
与
On eclipse 3.4.1 Ganymede, it seems to select the nearest boundaries including the '_' (at least in the java file I am using)
What eclipse version are you using ?
This blog even reports that eclipse3.3 does select word as you are expecting it...
vs.