How to navigate through the source code by parts in CamelCase (instead of whole words)?

北战南征 提交于 2019-11-28 15:32:48
CrazyCoder

Yes, enable Use "CamelHumps" words in Settings | Editor | General | Smart Keys.

As answered elsewhere, you can enable Use "CamelHumps" words in Settings | Editor | General | Smart Keys to switch the shortcuts to work with camelCase instead of whole-word.

You can also access the previous behavior by assigning keyboard shortcuts to the appropriate actions under Settings | Appearance & Behavior | Keymap | Editor Actions. This image shows an example where I access the previous behavior by adding ctrl:

blue_note

You can have both functionalities at the same time:

  1. In "Settings->Editor->General->Smart Keys", disable "Use CamelHumps words".
  2. In "keymap", create shortcuts for:
    • "Move caret to next word"
    • "Move caret to next word in different camelhumps mode"

Note that these steps correspond to IntelliJ 14, so they might be slightly different in other versions.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!