Navigating through camelCasedWords with the Ctrl key

When I have a camelCasedWord and the cursor is at the end of that word, I would like to be able to navigate the cursor to camelCased<here>Word with Ctrl + left arrow. I like this feature in other IDEs. Is this implemented in PHPStorm?

7

Hi there,

"Settings/Preferences | Editor | General | Smart Keys --> Use "CamelHumps" words"

 

Hint: Try search box on the Settings screen -- it helps narrowing possible options

14

Thank you! Also thank you for the hint. I know and use the search box in the settings screen. But it's rather hard to find something, that is called 'Use "CamelHumps" words', if you don't know the term "CamelHumps". I could have find an answer with google without knowing the term

https://www.startpage.com/do/dsearch?query=ide+navigate+camelcase

Argh!

0

>But it's rather hard to find something, that is called 'Use "CamelHumps" words', if you don't know the term "CamelHumps".

Well .. my idea was: you have "camelCaseWords" term already -- if you search for most obvious "camel" part of it on Settings screen you will see only few pages ... which should lead you to the needed option (after possibly checking the associated help page to see what that particular option does).

2

Yes, sure, I know what you mean. But I think it's not so obvious: First you have do decide to search for camelcase or pascalcase or maybe uppercase. Then you have to decide to stop typing in your "camelcase" after "camel" and that implies, that you imagine that there could be a made-up word "camel something" and ... yeah, I think it is not so obvious :) Better way would have been to first try to figure out, how this feature is called and exactly this question would have given me the answer through google.

I cannot remember how I tried to find that option. It's a couple of weeks ago, when I tried it. I could solve another PHPStorm problem yesterday and have been motivated to go about this problem then, too (without searching the settings screen again).

Could be an idea for PHPStorm to add hidden keywords or synonyms to configuration options to improve the search for such cases. But it has drawbacks, of course.

0

Oh no, my assumption is not right: "camel case" could also we written in two words and there is also "camel caps"... Okay, I feel guilty :)

0

>Could be an idea for PHPStorm to add hidden keywords or synonyms to configuration options to improve the search for such cases. 

AFAIK they have it for some terms (cannot give you any examples right now though)

 

BTW -- you can also search for settings via "Help | Find Action..." and "Search Everywhere" (Shift 2 times) .. and change it (On/Off) straight away -- useful if you need to switch on/off something quickly without the need to go into actual Settings screen.

1

请先登录再写评论。