AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Phpstorm keyboard shortcuts windows1/12/2024 ![]() ![]() First, Cmd + Shift + F is essentially a powerful string search over your entire project so if you're looking for a named variable or specific piece of text that lives in a comment or an actual string variable, this is what you'll need to use, since it likely won't show up in the "Search everywhere" results. This one overlaps a bit with "Search everywhere" in functionality, as many things can be found using either method, but there are two key differences when deciding which to use. Though I use it less frequently, this is a particularly useful one in cases where I decide I want to add a comment or documentation line to the code I've just written or edited. I've also mapped ⌥ + Shift + Enter to add a newline before the current line and move the cursor there. Rather than jumping to the end of the line and pressing Enter, Shift + Enter will add a newline and move the cursor down all at once. A common scenario in my work is that I've edited some code, leaving my cursor somewhere in the middle of the line, and I want to add a new line. ![]() This one is really simple, but I use it constantly. I find this to be extremely useful as I'm working on a task that touches a few different locations among a few different files, particularly if don't have the screen real estate to display everything at once. WebStorm does a really good job of differentiating between useful locations and individual cursor positions so as you type, the cursor position after each character is not added to the history, nor are short cursor movements from the arrow keys. If you wanted to quickly get back to the new file you created, you could tap Cmd + and you'd be right back at the bottom of the other file where you created the function. You then open an existing file, make some changes to the imports at the top, then scroll way down to the bottom and add a new function. For example, you place the cursor in a new file and create a class. Cmd + - Back and forward navigationĪs you're working, WebStorm keeps track of everywhere the cursor goes in a really convenient navigable history, and you can use Cmd + to jump back and forth through that history. Actions are displayed along with their keyboard shortcuts, if assigned, and conveniently you can even assign shortcuts without ever leaving the "Search everywhere" modal. In that tab you can find any action that the IDE is capable of performing. I like to use the "Actions" tab when I don't know or simply can't remember a keyboard shortcut. If you're looking for classes, files, or symbols specifically, you can use Tab or Shift + Tab to switch between the tabs and narrow your search according to type. that I'm looking for within that file) is selected at the top and hitting Enter will take me right where I need to be. In my own work, I most frequently use this to navigate between files rather than reaching for my mouse to dig through my project tree for a file, I'll tap Shift + Shift, start typing out the filename, and typically within three or four characters my file (or the class/function/etc. ![]() As you type what you're looking for in this tab, the list will populate with a grab-bag of anything and everything from your project that matches or comes close to matching your query - classes, variables, files, directories - it's all there. The first tab, and the one you're thrown into when you first open the modal, is "All". From this modal you can find anything and perform just about any action that WebStorm is capable of performing simply by typing what you want.Īlong the top of the "Search everywhere" modal there are six tabs indicating categories of items that can be used to narrow your search. This shortcut opens the "Search everywhere" modal, which you can think of as a sort of Swiss Army knife for your keyboard. ![]()
0 Comments
Read More
Leave a Reply. |