![]() 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. md files or something like that.This shortcut opens the "Search everywhere" modal, which you can think of as a sort of Swiss Army knife for your keyboard. java files, for instance, without going into. This is particularly useful for me whenever I want to just search. You’ll be able to select (or just plain type your own) a wildcard operator that returns all the file types of a certain kind. You can select the existing file type from the list, add a new file type, or add an additional file mask syntax to search for file types with certain patterns. Use the File Mask option to narrow your search to a specific file type. Search for specific file typesĪt the top of the find in files window is a feature called File Mask. To sort the search entries, select View Options | Sort Members Alphabetically in Show Options Menu (gear icon).įor more information on the options and icon references of the Find tool window, refer to the Find tool window reference section. To return back to the Find in Files dialog, click (gear icon) on the left toolbar. To locate the result of the search in the editor, use the Jump to Source option from the context menu. If you want to exclude a directory from the results, select a directory and from the context menu, select Exclude. Using icons and context menu in the Find tool window, you can sort entries, exclude directories, navigate to the source code, and so on. I was curious as to where all instances of clone() in the project, and I got this:Īccording to IntelliJ IDEA’s documentation: Here, I have the spring-boot project loaded up in IntelliJ IDEA. ![]() ![]() If you want to get an idea of what the functionality looks like when you’re trying to search something, here’s an example: There, you can click to get into the actual functionality, and you’ll also be able to see a reminder of what the keyboard shortcut is. If you forgot the keyboard shortcut and don’t want to come back to this article, then you can simply navigate to IntelliJ IDEA’s Edit > Find > Find in Files… On Windows? Then you’ll want to hit these keys: ctrl + shift + fīasically, the only difference between the Mac and Windows way is swapping command and ctrl. Using a Mac? Then simply press these keys on your keyboard: command + shift + f Windows Well then, here it is, both for Mac and Windows: Mac You probably came to this article for one reason and one reason only: getting the sweet, sweet shortcut. To put it more concisely (and colloquially), it’s awesome. What that basically means is that if you’re looking for a particular word or keyword or string or substring or number in all of your project files, you can simply use the find in files feature built into the Integrated Development Environment (IDE) and then get a list of all files that match your input as well as where exactly in the code it occurs. This is one of the most useful keyboard shortcuts I can think of when it comes to working with IntelliJ IDEA: find in files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |