Inti Inti - 10 days ago 6
Python Question

Moving between underscore separated words in PyCharm with Alt + ←/→

In PyCharm when I move between words with the

Alt + ←/→
shortcut it moves the cursor between whitespace separated words. How can I make it move the cursor between
underscore_seperated_words
?

Answer

The option is not obvious but if I tick Editor -> General -> Smart Keys -> Use "CamelHumps" words then when moving between words with Alt + ←/→ I can step between underscore separated words rather than just space separated "words". The same works for camelCase words obviously.