如何在 CamelCase 中按部分(而不是整个单词)浏览源代码? [英] How to navigate through the source code by parts in CamelCase (instead of whole words)?
问题描述
我记得当我使用 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
推荐答案
是的,在Settings | 中启用Use "CamelHumps" words编辑|一般 |智能钥匙
.
Yes, enable Use "CamelHumps" words in Settings | Editor | General | Smart Keys
.
这篇关于如何在 CamelCase 中按部分(而不是整个单词)浏览源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!