Ctrl + B in PhpStorm v2

I've just upgraded to v2 and ctrl + b no longer seems to work. I keep getting a message stating "Cannot find declaration to go to" even though this shortcut was working fine before I upgraded. Any advice?

7 comments

Nope.

We need isolated code exampl to talk about something.

0

See attached. The code won't actually do anything since all of the framework code is missing, but it still illustrates the issue that I'm having. If I open this directory in 1.0.2, navigate to test.class.php and click ctrl+b on the call to clickCtrlB(), PhpStorm will take me to the definition of that funciton in testb.php. In 2.0 all I get is an error.

Thanks.

 

0

There was a "heuristic" in 1.0 that matched unique member names regardless of type inference engine checks.
It was deliberately removed and will not be supported anymore because its proven to work bad in most cases.
Please add appropriate PHPDOC type annotations to your code.

0

Is any chance to return this functionality? Or may be set flag in preferences to set "heuristic" method.
It was the best feature of your Editor!

0

Wow, that's singularly unhelpful. I switched over from Netbeans because I like the features of PHPStorm, but this one is kind of a dealbreaker. It works perfectly in Netbeans, so obviously it can be done.

0

"It works perfectly"

We combine feedback from 500000+ users across various channels when making our decisions. 

As I said "It was deliberately removed and will not be supported anymore because its proven to work bad in most cases".

I hope PhpStorm has enough other features making it better than Netbeans for you, and that you'll be able to refine your workflow.

0

Please sign in to leave a comment.