How to make phpStorm your own exclusive IDE? One of the php development artifacts will inevitably talk about phpStorm. the power of the tools is obvious to all. even if the development tools are powerful and fully functional, they are also a tool, what's important is how you view and use it. I have been using zend studio and recently tried phpstorm to record common operations for learning together.
PhpStorm is a paid software. if you have an economic foundation, you are advised to purchase a registration number to support genuine versions. Of course, you can also download the cracked version. if you are not tired of installing and cracking the version, there are a lot of online resources. you can search for it by yourself. here, record the first step after installation, phpStorm settings and configurations:
1. how to set the default encoding of phpStorm, such as UTF-8?
PhpStorm Encoding is divided into IDE Encoding and Project Encoding, the method is to open File-> Setting-> Editor-> File Encoding settings, for example, IDE Encoding is set to GB2312, Project Encoding is UTF-8.
2. how to set the topic style of phpStorm?
How to Make Your IDE into an exclusive IDE will always have a sense of accomplishment in mind. so, how can I set the phpStorm interface style to the full gray style of Sublime?
Choose File> Setting> Appearance & Behavior> Appearance> UI Option, select Theme, and click the drop-down menu. the default value is IntelliJ. select Darcula and click apply, you can see that your editor interface is cool and cool.
3. how do I set the subject of the editing area?
Next, after changing the theme style of the phpStorm interface, we found that the theme in the editing area has not changed. this is a little different from other editors. the phpStorm theme style separates the interface from the editing area, set the topic style of the editing area. Open in sequence
File-> Setting-> Editor-> Colors & Fonts-> Font. the drop-down box of Scheme is displayed on the right. this is the style of the topic in the editing area. Select your favorite style. Note that after selecting a topic, for example, I select WarmNeon, but after applying, the font in the editing area is too small. to change the font, click Save As to customize the topic name, before you can change the PrimaryFont, Size, and Line spacing under the Editor Font.
4. how to install the downloaded topic?
Download your favorite topic from the official phpStorm topic, download it in xml format, and copy the file to the phpStorm configuration directory. Note that the configuration directory here is not the installation directory, but a corresponding configuration directory in drive C, usually under C: \ Users \ Administrator:
C: \ Users \ Administrator \. webIde100 \ config \ colors, and change the suffix xml to icbl. you can see it under Scheme of File-> Setting-> Editor-> Colors & Fonts.
5. how do I display the row number?
If no row number is displayed in the editing area, you can use the following Settings to display the Settings-> Editor-> Appearance tab, and select Show line numbers.
6. how to add a plug-in?
File-> Settings-> Plugins-> Browse repositories-> Search. we recommend that you install live edit to view the editing effect in the browser in real time. In addition, if you are not familiar with vim in Linux, you can install ideavim to edit the code using vim. after the installation is successful, you will be prompted to restart IDE, restart as prompted.
7. how to develop phpStorm in Chinese?
If you are angry with the English version of phpstorm, you can write the editor in Chinese.
The subsequent steps are as follows:
(1) first download and install the original PhpStorm10
(2) copy the resources_en.jar file in the installation directory C: \ Program Files (x86) \ JetBrains \ phpStorm 10 \ lib and rename it resources_cn.jar.
(3) double-click to open resources_cn.jar (note that it is not extracted), drag all the files in the zh_CN Directory of the downloaded Chinese package to the messages directory in the resources_cn.jar file you just opened, and save it.
(4) copy the resources_cn.jar file back.
C: \ Program Files (x86) \ JetBrains \ PhpStorm 10 \ lib directory.
Note: If garbled characters are displayed after opening, delete resources_cn.jar, open phpstorm, and select
File-> Settings-> Appearance & Behavior-> Appearance-> select Override default fonts by (not recommended)
Name: Microsoft YaHei (select any Chinese font)
Copy resources_cn.jar to the. \ lib directory and re-open phpstorm to display Chinese characters.
8. how to quickly select a row?
Move the cursor to the row to be selected. double-click any character and double-click again to select the entire row.
9. how can I quickly copy a row?
PhpStorm allows you to quickly copy a row. you only need to move the cursor to the target row and press ctrl + D to copy the row to the next row. you can also quickly copy code snippets.
10. the power of some phpStorm shortcut keys:
Combination shortcut key 1:
CTRL + O // find the corresponding method in a class, directly enter CTRL + E // open the recent browsing record CTRL + Space // open the syntax prompt CTRL + Y // delete the current row or the row involved in the selected content CTRL + R // replace CTRL + F // find CTRL + "-/+" // compress and expand the code CTRL + ". "// collapse the code of the selected code CTRL + [] // match {} [] CTRL + X // cut the row. if it is not selected, the entire row is cut directly, if you select a part of the content, the selected content SHIFT + ESC // minimizes any small window currently activated, or alt + 'number key ', the number is displayed in the title bar of the small window. CTRL + J // the output code template CTRL + Q // The function comment instruction document CTRL + B // jump to the variable function declaration field CTRL + N // class name: CTRL + F12 // display the structure of the current file, in the current class file, quickly find the method CTRL + G // jump row, such as: row: column ALT + F7 // display all methods in all the structure Classes ALT + up and down arrows // switch CTRL + mouse up and down between FUNCTIONS // code tracing
Combination shortcut 2:
CTRL + ALT + L // format the code CTRL + ALT + J // add the label CTRL + ALT + S // open the setting CTRL + ALT + F12 // jump to the disk where the current file is located on (you can select files, directories, and disks) CTRL + ALT + T // insert code (this shortcut key conflicts with the QQ broadcast key, you can change QQ to S + C + A + T) CTRL + ALT + L // format the code. if you select the content, format and select the content code. if you do not select the content, format the file code (the shortcut key conflicts with the QQ unlock key, QQ can be changed to S + C + A + L) CTRL + SHIFT + R // you can quickly find the location of this keyword in the entire project, replace the matching character CTRL + SHIFT + F // in the entire project directory to quickly find the position of the keyword in the entire project. ALT + SHIFT + UP // move CTRL + SHIFT + UP // block movement, move the cursor on the {} (), if, and while Rows. move CTRL + SHIFT + I // in the normal statement to re-format the code. if you do not select this option, format the line, select CTRL + SHIFT + U // uppercase/Lowercase conversion for the selected content for content formatting, and select content for content conversion, if no content is selected, the system automatically determines whether to convert words into CTRL + SHIFT + N // search for file names, open the file CTRL + SHIFT + ALT + N in any Directory of the current project // find the function name CTRL + SHIFT + V // display the content in the most recent clipboard, after selection, insert the content to the cursor position CTRL + SHIFT + I // view the initialization value of the variable. if it is a class in css, the details of the current class are displayed, if JavaScript is used, the detailed information of the function is displayed. (imagine, if you view the detailed information in jquery method, you can directly see the implementation code.) if it is php, at that time, the detailed information of the function was still available.