He that will do his work well must first sharpen his tools

PhpStorm is a commercial PHP integrated development tool developed by JetBrains to improve user productivity, provide a deep understanding of user coding, intelligent code completion, fast navigation, and instant error checking. PhpStorm is the PHP development tool of choice. Mastering PhpStorm will greatly improve your development efficiency and save you a lot of time with your girlfriend (if any).

Here are 8 tips for PhpStorm’s most efficient development

1. Case conversion — avoid repeated writing

After the mouse is selected, press Ctrl +Shift + U to convert all letters in the text to uppercase, and press again to convert all letters to lowercase. Avoid re-entering, super easy to use.

2, multi – select – the code word fly

After selecting a text, hold down Alt + J to select the same text for editing, and hold down Alt +Shift+ J to deselect the text. The shortcut is called Add Selection for Next Occurrence and can be changed to another shortcut by going to File >Settings. Since you understand this method, don’t type too fast.

3. Add custom dictionaries — eliminate typos

When a word appears in the code that is not an English word, a wavy line appears underneath the word, making it impossible to tell whether the word is misspelled or not a word itself. Once you’ve selected the word, hold Alt + Enter and select Save to Project-level Dictionary to remove the offending tilde. From now on, typing code is no longer afraid of misspelling words.

4. Display line numbers — proof of work

Right click on the left blank of the code area, select Show Lines Nimbers, uncheck to hide the line number. I didn’t know I was so capable until I opened it.

5. Code formatting optimization — neat

When writing code, we often only pay attention to whether the logic is running correctly, and ignore the code format, which greatly reduces the readability, leading to the compulsion to look at the CodeReview. Select the code you want to format and hold Down Ctrl + Alt + L to format all code automatically. All neat and comfortable to look at.

6. Code template setup — code auto-fill

To automatically complete the foreach code, enter fore and press Tab, and the variables after as can also be changed with the preceding variables. This setting can be customized in Settings>Editor>Live Templates, as well as other code that needs to be completed. Duplicate code should be completed automatically.

SSH tool — Connect to server

Click Tools>Start SSH Session… In the next pop-up window, select the server to link to. If no server has been configured, you can select Edit Credentials in the pop-up window to add the server configuration. Say goodbye to Xshell, PhpStorm is enough.

8, FTP tool – remote file change

Click Tools>Deployment>Browse Remote Host to connect to the Remote server FTP directly. It is very convenient to view logs and modify configuration files. Note that you must click ↑ in the upper right corner to save the changes to the server. Say goodbye to Xftp, PhpStorm is enough.

  • Pay attention to the public number [text know], harvest more software installation use activation tutorial, reply [phpstorm] to get the latest PHPstorm activation code, continue to update oh ~