如何在IntelliJ IDEA中选择骆驼字的单个单词 [英] How do I select individual words of a camelized word in IntelliJ IDEA
问题描述
IntelliJ IDEA的快捷方式是移动或选择骆驼字的单个单词?假设我有一个LongMultiWordVariableName,我希望能够将光标移动到每个单词进行编辑或选择部分变量。
What is the shortcut in IntelliJ IDEA to move across or select individual words of a camelized word? Lets say I have aLongMultiWordVariableName, I want to be able to move the cursor to each word for editing or select parts of the variable.
Eclipse有一个快捷方式来执行此操作< kbd> Ctrl + ← / → 用于移动和 Ctrl + Shift + ← / → 供选择。
Eclipse has a shortcut to do this Ctrl+←/→ for move and Ctrl+Shift+←/→ for selection.
推荐答案
IDEA有相同的击键作为Eclipse的驼峰式单词,但你必须打开CamelHumps选项(它在设置 - >编辑器 - >常规 - >智能键 - >使用CamelHumps字样)
IDEA has the same keystrokes as Eclipse for camel-case words, but you have to have the CamelHumps option turned on (it's in Settings -> Editor -> General -> Smart Keys -> Use "CamelHumps" words )
这篇关于如何在IntelliJ IDEA中选择骆驼字的单个单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!