12/5/2023 0 Comments Webstorm terminal hotkeyIf you want to find and replace an occurence you can use ctrl + r. If you want to search in a file you can use the shortcut crtl + f. Searching is an action I do hundred times a day. You can now insert a if, foreach or while quickly around a block of code. Just select some code and go to Code > Surround with or use the shortcut ctrl+alt+t. It is very easy in PhpStorm to wrap a block of code with a control structure. You need to write a useful while(true = true) around a piece of code in order to blow off your server? You can now create getters and setters for every properties you want in one click. Yes? Please stop right now and instead go to code > generate or use the shortcut alt+insert. Generating getters and settersĭon’t tell me you write your accessors yourself. If you deleted a file in a precise folder and you want to get it back, just revert his history! You can as well use this functionality on folders. You can compare an older version with the current state and reverse the changes. You will access to a very handy history of the file currently open. I am totally in love with the file history system in PhpStorm.Ĭoncretely you need to click the right button of your mouse in the editor and go to Local History > Show History. With this useful shortcut you won’t get lost in your file tabs trying to find a file you modified five minutes ago! 4. If you want to go forward again you can use ctrl + alt + right. You need in that case to use ctrl + alt + left to go back in your file history quickly. You changed something ten minutes ago in a file but you don’t remember exactly where? You can as well create other shortcuts by adding them directly into the file. Pretty handy if you don’t remember exactly what shortcuts you modified. You can even search what you want with the powerful search engine.Įvery shortcuts you modify (and only those ones) are saved into a XML file located in ~/.WebIde/config/keymaps/ If you don’t like the shortcuts by default you can change every single one by going to file > Settings > Keymap. At one point the shortcuts will become natural and you will concentrate on coding instead of losing yourself in the menu. It is faster and you will have the feeling you control your IDE. I advice you strongly to use as many shortcuts as you can in PhpStorm. You can open a class declaration by using ctrl + click or ctrl + b when your mouse/carret is on the occurrence. This article is still valuable for PhpStorm users though. Update 2017: PhpStorm was my favorite IDE… before The Change. I am using Ubuntu for developing: if you use a mac, simply replace every ctrl by cmd in order to use the shortcuts. In that case you need to change the shortcut in your IDE. You need to know as well that if a particular shortcut is already used by your OS, it won’t work in PhpStorm. In this article I use PhpStorm 10 but it is roughly the same things for every version of the IDE, even if jetBrains has the tendancy to change the setting menu pretty often. Here I share with you some basic tricks I learnt and I use every days. Moreover there are search engines for everything: in order to find a particular application setting, some auto completion or a specific class. It has a very good GUI for Git and everything you expect to find in an IDE (auto completion, indexing…). You can configure easily a debugger, using a terminal, sending requests to your remote or local databases. The guys from Jetbrains tried to integrate every useful tools for a web developer in one software and, I have to say, it is pretty well done! PhpStorm is my favorite IDE for coding in PHP: pretty stable, you can do a lot with it. Twitter #PHP 10 PhpStorm Shorcuts and Tricks you Should Know
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |