Written in front
As a PHPer, Hy369 has used several IDEs. The reason why I changed the IDE is because after using it for a long time, I always felt uncomfortable using it, so I wanted to try a new IDE. This problem no longer existed until I started using PhpStorm.
Yes, Hy369 currently loves PhpStorm. For people like me who always want to be lazy, this software is really good and can always bring more or less surprises during use.
Of course, Hy369 does not mean to slander other IDEs. After all, everyone’s development habits are different.
To be honest, Hy369’s English is really not that good. He failed the CET-4 exam three times, so although Hy369 has been using PhpStorm for two or three years, so far, he has not read its usage documentation carefully. , so many small functions that help with laziness have not yet been discovered by Hy369. This is why during use, I am constantly surprised by some practical little functions.
But now, Hy369 wants to spend some time to learn more about the functions of this lovely IDE, so I have to read the documentation.
Since my English level is really not high, I thought I would record some practical little functions during the reading process in my PHP blog for quick reference in the future, and also to provide some reference for other friends who need it. ha.
Okay, as a "programmer", it seems that I have talked too much nonsense, so I'd better keep my mouth shut.
PhpStorm uses memo
Quickly switch tabs
When the editing area is activated (that is, the window where you type the code is inputable), you can select different graphics cards through Alt + left arrow key and Alt + right arrow key Switch on the tab, and when the tab is switched to the first or last one, it will automatically scroll to the last or first one (that is, you can switch in a loop).
Of course, it is also useful to press this key combination when the non-editing area is activated. You can experience the specific function by yourself.
Quickly open a certain directory where the file is located
While holding down Ctrl, click the tab with the left mouse button, a dialog box will pop up, which lists all the directories to which the file belongs (it will always Trace it back to the top-level directory), click on the directory you want to open, and you can quickly open the corresponding directory.
Well, Hy369 used to open an explorer (that is, a folder) and then use the mouse to click one layer at a time.
Choose any character
to achieve the effect: For example, a string ABCDEF. Sometimes, you want to select only B and DE for copying.
Method 1:
With the editing area activated, hold down the Alt key and click the left mouse button to select any character.
Method 2:
With the editing area activated and the cursor positioned in the editing area, double-click the Ctrl key, click and hold Ctrl for the second time, and use the four direction keys to perform column selection and other operations.
You can experience the difference between the two methods by yourself.
Open files or folders from the navigation bar
Let me first talk about what the navigation bar is. After opening a file, a line of directory structure will appear under the menu bar, telling you the directory level of the currently activated tab.
Click a folder in the navigation bar, and a drop-down dialog box will pop up listing the folders and files under the folder.
If you click on a file in the drop-down dialog box, the file will be opened; if you click on a folder, the folder will be selected, and then a drop-down dialog box will pop up again to display the newly selected folder. files and folders under.
If you double-click a folder in the navigation bar, the Project directory tree structure will pop up, select the corresponding folder.
and so on, it will not end until you select a file.
The above is the content of PhpStorm usage memo (1). For more related content, please pay attention to the PHP Chinese website (m.sbmmt.com)!
Related articles:
How does phpStorm use FTP and SSH to connect to the virtual machine Linux system?
Detailed explanation of the steps to use SFTP in Phpstorm
PHP IDE PHPStorm configuration supports friendly Laravel code prompt method