How to make Phpstorm your own IDE?

Source: Internet
Author: User
One of the PHP development artifacts is bound to speak of Phpstorm, the strength of the tool is obvious to all, the development of tools, even if powerful, full-featured, is also a tool, it is important how you look at it and use it. Zend Studio, which has been used for a long time, has recently tried phpstorm, documenting common operations in order to learn together.
Phpstorm itself is a charge of the software, the economic base or the proposal to purchase a registration number, support genuine. Of course, you can download cracked version of, about how to install and crack, not tired of, online related resources are also many, we can search the next, here record the first steps after installation, the relevant settings and configuration of Phpstorm:
1. How to set the default encoding for Phpstorm, such as UTF-8?
The Phpstorm encoding is divided into IDE Encoding and Project Encoding, which are set up by opening file->setting->editor->file Encoding settings, such as the IDE Encoding is set to Gb2312,project Encoding to UTF-8.
2. How to set the theme style of Phpstorm?
How to make their own IDE to create a dedicated IDE, there will always be a sense of accomplishment in the psychological, then, how to set the Phpstorm interface style imaging sublime that all gray style?
Open file->setting->appearance & Behavior->appearance->ui option, select Theme, click the drop-down menu, default to IntelliJ, Select Darcula and click Apply to see your editor's interface become cool and dusty.
3, how to set the theme of the editing area?
After a step, change the theme of the Phpstorm interface style, found that the theme of the editing area has not changed, here with other editors a little different, phpstorm theme style is to separate the interface and editing area, the following to set the theme style of the editing area. Turn on
File->setting->editor->colors & Fonts->font, see the Scheme drop-down box on the right, this is the theme style of the editing area. Choose the style you like and you can. It is important to note that after choosing a good theme, for example I chose Warmneon, but after apply, the text of the editing area is too small, here to change the font needs to click Save As, custom theme name, and then you can change the editor font under the Primaryfont, Size and line spacing.
4, how to install the theme of their own download?
Download your favorite theme in the official Phpstorm theme, download it in XML format, and copy the file to the Phpstorm configuration directory. Note that this refers to the configuration directory is not the installation directory, but in the C disk corresponding to a configuration directory, generally under C:\Users\Administrator:
C:\Users\Administrator\. Webide100\config\colors, and then change the suffix XML to ICBL, which can be seen under File->setting->editor->colors & Fonts scheme.
5. How do I display the line number?
If your edit area does not show line numbers, you can display the Settings->editor->appearance tab item by using the following settings, and check show lines numbers.
6. How do I add plugins?
Search repositories, Plugins, Settings, File----Recommend installing live edit to view edits in real time in the browser. In addition, if you are learning Linux and are not familiar with VIM, you can also install Ideavim to use vim to edit the code, after successful installation, you will be prompted to restart the IDE, follow the prompts to restart.
7, how to Chinese phpstorm?
As to the problem of phpstorm, if you are annoyed with English, you can make the editor a Chinese language.
The following steps are in the Chinese process:
(1) First download and install the original PHPSTORM10
(2) Copy the 10\lib file from the Phpstorm installation directory C:\Program files (x86) \jetbrains\phpstorm Resources_en.jar directory and rename it to Resources_cn.jar
(3) Double hit Open Resources_cn.jar (note is open and not extracted), the download of the Chinese package ZH_CN directory of all the files into the Resources_cn.jar file just opened in the messages directory, and save.
(4) Copy the Resources_cn.jar file back to
C:\Program Files (x86) \jetbrains\phpstorm 10\lib directory, that is, the completion of Chinese.
Note: If garbled after opening, remove Resources_cn.jar, then open Phpstorm, and then on the menu, select
Settings, Appearance & Behavior---appearance, File----Select override default fonts by (not recommended)
Name:microsoft Yahei (select any Chinese font)
Then copy the Resources_cn.jar to the. \lib directory and re-open the Phpstorm to display the Chinese correctly.
8, how to quickly select a row?
Move the mouse to the row you want to select, double-click to select any character, double-click again to select the entire row.
9, how to quickly copy a line?
Phpstorm quickly copy a row, just move the mouse cursor to the target line, directly ctrl+d, you can copy the target line to the next line, but also to make a quick copy of the code fragment.
10, Phpstorm Some of the power of shortcut keys:
Combination shortcut key 1:

CTRL +o                 //Find the appropriate method in a class, direct input Search CTRL +e                    //Open Recent browsing history CTRL +space             //Open Syntax tips Ctrl + Y                //Delete the line involved in the current row or selection Ctrl + R                //Replace CTRL + F                //Find CTRL + "-/+"//            Shrink Unwind code CTRL + "."              Collapse the code of the selected code CTRL + []               //Match {}[]ctrl + X                //Cut the line, uncheck, cut the entire row directly, cut the selected content if it is selected SHIFT + ESC             //Minimize any small window currently active, can also be ALT + ' number key ', number in the small window title bar has display CTRL + J//                output Code template CTRL + Q                //Display function comment Description Document CTRL + B                //Jump to variable function declaration CTRL + N                // Class name Find Ctrl + F12              //Display the structure of the current file, quickly find a method in the current class file Ctrl + G                //Jump line, such as: row: Column alt  + F7               // Show structure all methods in a class Alt  +          up/down ARROW//up-down function toggle Ctrl + Mouse             /code tracking

Combination shortcut key 2:

CTRL + ALT + L          //Formatting code CTRL + ALT + J          //Add tag Ctrl + ALT + S          //Open Settings Ctrl + ALT + F12        //Jump to the location on the disk where the current file is located (you can select files, directory, disk) Ctrl + ALT + T          //Insert Code Wrapping (this shortcut key and QQ broadcast key conflict, can modify QQ for s+c+a+t) Ctrl + ALT + L          //format code, select content to format the selection of content code, Do not select the content to format the file code (the shortcut and QQ unlock key conflict, you can modify the QQ for S+c+a+l) Ctrl + SHIFT + R        //Quickly find the keyword in the entire project location, and replace the entire project directory in the match character Ctrl + SHIFT + F        //Quickly find the position of the keyword in the entire project Alt  + SHIFT +       up//Line move CTRL + SHIFT +       up//block move, cursor on {} () or if, while row, block move, Move the CTRL + SHIFT + I//reformat code on the normal statement, choose to format the contents of the row, select content to        format the selection Ctrl + SHIFT + U        //Letter case conversion, select content conversion selection, Do not select content Auto-Judgment Select Word Convert CTRL + SHIFT + N        //File name find, open current project under any directory of files Ctrl + SHIFT + ALT + N  //function name Find CTRL + SHIFT + V        //Show recent Paste the contents of the board, select the content to insert into the cursor position CTRL + SHIFT + I        //View the value of the variable initialization, if the class in the CSS shows the current class details, if it is JS display the function details (imagine, If you look at the details on the jquery method, you can see the implementation code directly, and if it's PHP, then it's still the details of the function.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.