We are breaking ground on a new app at work and are tinkering with a few IDE’s. Up until now we’ve standardized on Xcode and PhpStorm. Code is the gold standard for react these days but I’ve never really given it an honest try; to get everything set up right. In the past, for “regular” react work, I’ve opened the react project in PhpStorm (which has all the power of WebStorm) and everything “just works”. Full intellisense gives me great autocomplete, introspection, auto importing, etc. Granted, Code can do all this too, but it was nice to just open the IDE I’m familiar with and get to work. Also, at least the last time I tried, a bunch of plugins were needed. I believe most of this works OOB now
Some of my co-workers are poking around with PhpStorm to see how they like it so I’m writing out the tweaks I do to any fresh install. Laracasts has an amazing (and free!) video series on the topic: Be Awesome in PHPStorm
showTipsOnStartup. They are annoying
cmd+wwill close it instead of cycling through a history of what was in that tab. To get to recently opened files, with auto complete, use
cmd+einstead which will open the
Full keymap file is available here
PhpStorm will copy or cut a whole line, if you don’t have anything highlighted and you mash the appropriate keys. So, why not delete the line you are on?
EditorDeleteLine mapped to
If you want to have 2 editor windows side by side, make as many as you want!
SplitVertically mapped to
Note: There is probably a better binding for this, but I already use those for my window manager, Moom
Open Project Files(
shiftis also very useful but it can have a lot of noise depending on the type of project)
cmd+1hides the sidebar
I go back and forth between these