如何通过CamelCase中的部分(而不是整个单词)浏览源代码? [英] How to navigate through the source code by parts in CamelCase (instead of whole words)?
本文介绍了如何通过CamelCase中的部分(而不是整个单词)浏览源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我记得当我使用Eclipse时,在按住CTRL并使用向左或向右箭头时,Eclipse会在几个步骤中浏览 LongCamelCaseWrittenWord
。一个骆驼案例的话。
I remember when I was using Eclipse that when holding CTRL and using left or right arrows Eclipse would navigate over the LongCamelCaseWrittenWord
in several steps. One camel case word at time.
所以它会像下面这样(管道 |
表示实际的光标位置) :
So it will go like follows (pipe |
represents the actual cursor position):
|LongCamelCaseWrittenWord -> CTRL+RIGHT_ARROW ->
Long|CamelCaseWrittenWord -> CTRL+RIGHT_ARROW ->
LongCamel|CaseWrittenWord -> CTRL+RIGHT_ARROW ->
LongCamelCase|WrittenWord -> CTRL+RIGHT_ARROW ->
LongCamelCaseWritten|Word -> CTRL+RIGHT_ARROW ->
LongCamelCaseWrittenWord|
有没有办法在IntelliJ中实现这一目标?目前IntelliJ会立即跨越整个单词。
Is there a way how to achieve this in IntelliJ? Currently IntelliJ steps over the whole word at once.
使用IntelliJ 9.0
Using IntelliJ 9.0
推荐答案
是的,在设置中启用使用CamelHumps字样编辑|一般|智能钥匙
。
Yes, enable Use "CamelHumps" words in Settings | Editor | General | Smart Keys
.
这篇关于如何通过CamelCase中的部分(而不是整个单词)浏览源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文