Your opening line sums up so much of my own experience. It used to drive me crazy. Your brain is "in the zone" and slow tree navigation totally ruins it. Hence I once stayed up all night and implemented a fast class browser which took you from usage to definition to htmldoc etc in our own proprietary development system. PHP storm does it great. SO much better than ctags, global etc I was used to in Emacs.
I believe doing everything that you possible can with a keyboard will significantly improve your coding speed, not just in PhpStorm, but in general. Concerning PhpStorm, there is so much more you can do. Check your keymap, make your own shortcuts and try holding 'alt' every now and then to see what options there are in your navigation. For example, I often find myself needing to replace all variables named "variableX" in a file. Click Ctrl+r to find and replace. type in "variableX". then TAB, then type your new value and then "alt+a" to replace all in your file or selection. This is just a simple example, but there is so much more. Also when selecting code or code blocks, there are always shortcuts! Learn these and you will drastically improve your speed (also, using your mouse a lot can be painful). In conclusion, I think it might be time for an extended and new version of this lesson, there are so many awesome shortcuts, also in combination with the Symfony plugin.
Yeah, totally agree! Thanks for sharing some tips in your comment. I'd just add that shortcuts might be different on different platforms, but learning them (at least basic you may use every day) would be a great idea.
I love PHPStorm since 3 years now. To see *where* the actual file is located in the directory I like to enable "Autoscroll from source" in the Project-window settings. And to jump back and forth between the last Navigation-points there is Cmd-Alt-LeftArrow/RightArrow (PC: Strg-Alt-...). [and there are even more shortcuts...] Thanks JetBrains !
When doing a navigation course it's *REALLY* important not to *just* spout out key chords as (a) they change over time and (b) they are not consistent over platforms. Please always show, in addition, the actual command in the menu system. Thanks!
You're right - and there are so many keymap combinations (more than 10!) for PhpStorm! I tried to show the menu option when that exists, but it doesn't always exist. A lot, but not all of them, are shown on this page - https://www.jetbrains.com/h... - and you can switch between the Keymap in the upper right corner.
Hope that helps!
Please, log in to vote for this comment
|
Share Comment
"Houston: no signs of life" Start the conversation!
This is an older tutorial using an older version of PhpStorm. However, most of the tricks we show in PhpStorm still work beautifully.
9 Comments
Your opening line sums up so much of my own experience. It used to drive me crazy. Your brain is "in the zone" and slow tree navigation totally ruins it. Hence I once stayed up all night and implemented a fast class browser which took you from usage to definition to htmldoc etc in our own proprietary development system. PHP storm does it great. SO much better than ctags, global etc I was used to in Emacs.
I used to get obsessed with editors that had a good tree. It's almost embarrassing how much better PhpStorm is than all the old stuff I used to use :)
I believe doing everything that you possible can with a keyboard will significantly improve your coding speed, not just in PhpStorm, but in general. Concerning PhpStorm, there is so much more you can do. Check your keymap, make your own shortcuts and try holding 'alt' every now and then to see what options there are in your navigation. For example, I often find myself needing to replace all variables named "variableX" in a file. Click Ctrl+r to find and replace. type in "variableX". then TAB, then type your new value and then "alt+a" to replace all in your file or selection. This is just a simple example, but there is so much more. Also when selecting code or code blocks, there are always shortcuts! Learn these and you will drastically improve your speed (also, using your mouse a lot can be painful). In conclusion, I think it might be time for an extended and new version of this lesson, there are so many awesome shortcuts, also in combination with the Symfony plugin.
Hey DF,
Yeah, totally agree! Thanks for sharing some tips in your comment. I'd just add that shortcuts might be different on different platforms, but learning them (at least basic you may use every day) would be a great idea.
Cheers!
I love PHPStorm since 3 years now. To see *where* the actual file is located in the directory I like to enable "Autoscroll from source" in the Project-window settings.
And to jump back and forth between the last Navigation-points there is Cmd-Alt-LeftArrow/RightArrow (PC: Strg-Alt-...).
[and there are even more shortcuts...] Thanks JetBrains !
I searched for something like that for quite a while :D Thank you very much Klemens!
Yes, I agree with you! PhpStorm is a very cool IDE with a lot of features :)
When doing a navigation course it's *REALLY* important not to *just* spout out key chords as (a) they change over time and (b) they are not consistent over platforms. Please always show, in addition, the actual command in the menu system. Thanks!
You're right - and there are so many keymap combinations (more than 10!) for PhpStorm! I tried to show the menu option when that exists, but it doesn't always exist. A lot, but not all of them, are shown on this page - https://www.jetbrains.com/h... - and you can switch between the Keymap in the upper right corner.
Hope that helps!
"Houston: no signs of life"
Start the conversation!