

These shortcuts move whatever line of code the cursor is on up or down a single line. Windows: Alt + Shift + Up and Alt + Shift + Down.Just navigate to PhpStorm > Preferences > IDE Settings > Editor > Maximum number of contents to keep in clipboard to up that limit to something more respectable.

I believe the default history limit is set to 5, which is weak. This keeps a running log of things you’ve copied within PhpStorm and you can use it pretty much anywhere within PhpStorm, including the find / replace fields, extracting variables, extracting methods, renaming, etc. A crazy amount of search power for such a little window.Īnd if you have anything selected, that will automatically become the search term. You can refine scope to a particular folder, do a reclusive search, match case, regex, etc. You can even create nested files and directories with the same command.įind In Path will search your entire project for just about anything. Use the New command when you have a folder selected in the project window and you can insert / create a new files and folders. No context switching, no fumbling for the right window. Mash ⌥F12 and you're there, ready to rock a command. This is incredibly handy, especially when you're using tools like NPM, Grunt, Gulp, Composer, etc. Yes, PhpStorm has a fully functional Terminal baked right into it. Use this wherever you see a yellow or red squiggly line underneath something. Show Intention Actions is for anything from fixing typos / spelling, to fixing incorrect parameters, to automatically updating your PHPDoc if you change parameters, and much, much more. This is a super fancy name for "fix problems". Not only that, but it will automatically refactor all places these things are within the entire project. This even works for some more obscure languages you wouldn't expect, like Less / Sass, Mustache, and PHPDoc, to name a few. Using this, you can rename practically anything, such as variables, functions, filenames, class names, html tags, etc. Navigate File also support searching for files with wildcards, title case, file extension, etc. Navigate File is just a fancy name to mean "open files". This is helpful for discovering shortcuts you don’t already know or for jogging your memory by typing in a keyword or phrase. things you can do that don’t even have keyboard shortcuts). You can use it to search for shortcuts and IDE actions (aka.
PHPSTORM MAC WINDOWS
To reveal the Tool Windows on the sides and bottom of IDE, just double press / tap the command keys.įind Action is like the super keyboard shortcut. Starting in PhpStorm 7, I believe, JetBrains decided to hide the Tool Windows, by default, to declutter the UI.
PHPSTORM MAC MAC
Some developers will pass over PhpStorm (or other JetBrains products) because it doesn’t embody the same look and feel of a typical Mac application, which is unfortunate. It should look something like this: zend_extension= xdebug.remote_enable=1 xdebug.remote_autostart=1 xdebug.remote_connect_back=off xdebug.remote_host= xdebug.remote_port=9005 xdebug.Michael Novotny Timesaving Phpstorm Keyboard & Mouse Shortcuts to Increase Productivity January 8, 2015 You will then need to configure you xdebug either by using an xdebug.ini file or in your php.ini. If you get no output, that would mean it is not installed. For future reference and for anyone else facing that problem I decided to write this blog post.įirst you need to make sure xdebug is installed in the container in which you run PHP, you can check that by connecting to the container and running php -i | grep xdebug I figured I would set up xdebug, but this turned out a lot harder than expected. Recently I was in a situation where I needed to debug a very hard to find issue and I found myself needing something more than the trusty dd() or var_dump. Xdebug with PHPstorm + docker + macOS (+ linux + windows)
