How to make Phpstorm a dedicated IDE

Source: Internet
Author: User
Tags word wrap zend

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. How do I turn on automatic wrapping?
Phpstorm default is to start Word wrap, which is better than Zend Studio, Zend Studio, you need to install a Wrapword plug-in in order to achieve the size of the window with the line to wrap. If your phpstorm does not have a line-break effect, you can right-click the line bar to enable (use soft wraps). can also be set: File->setting->editor->use soft wraps in editor, the front box tick, save the application.
11. How do I add a comment to a function?
When adding comments to a function, simply enter/** and press ENTER before the function to automatically add comments.
12. How can I select multiple keywords at the same time?
To implement multiple keywords at the same time, press and hold the "ALT" key, then "double click" to select the keyword, you can select continuously.
13.phpstorm How to modify the php file header comment content:
File->setting->editor->file and Code templates-> to the right includes->php File header to modify the corresponding content.
14.phpstorm How to make the screen column display?
You can right-click on the label->split vertically (vertical column) or split horizontally (horizontal bar) display.
15.phpStorm some of the power of shortcut keys:
Combination shortcut key 1:
**ctrl +o**//Find the appropriate method in a class and enter the search directly
**ctrl + ' * */change interface theme
**ctrl +e**//Open Recent browsing history
CTRL +space//Open syntax hints
**ctrl + f4**//close the current window
CTRL + Y//delete rows involved in the current row or selection
**ctrl + r**//Replace
**ctrl + f**//Find
CTRL + "-/+"//Contraction Unwind code
CTRL + "." Collapse the code of the selected code
CTRL + []//Match {}[]
CTRL + X//Cut lines, uncheck, cut the entire row directly, and cut the selected content if part is selected
SHIFT + ESC//Minimum of any small window currently active, or ALT + ' number key ', number displayed on the small window title bar
CTRL + J//Output code template
CTRL + Q//Display function Comment Description document
CTRL + B//Jump to variable function declaration
**ctrl + n**///////class name lookup
**ctrl + f12**///////Displays the structure of the current file, quickly finds the method in the current class file, or clicks the structure on the left to display all the methods in the current class
**ctrl + g**///////jump line, such as: Row: Column
ALT + F7//Show all the methods in structure all a class
ALT + up/down arrow//up-down function switch between
CTRL + Mouse//code tracking

Combination shortcut key 2:
CTRL + ALT + L//format 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 resides (you can select files, directories, disks)
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 code, not select the content on the format of the file code (the shortcut and QQ unlock key conflict, can modify the QQ for the S+c+a+l)
CTRL + SHIFT + R//Quickly find the location of the keyword throughout the project, and replace the matching characters in the entire project directory
CTRL + SHIFT + F//Quick Find the location of the keyword throughout the project
ALT + SHIFT + up//Line move
CTRL + SHIFT + up//block move, cursor on {} () or if, while row, block move, move on normal statement upstream
CTRL + SHIFT + I//reformat code, do not select to format a row of rows, select content to format the selection
CTRL + SHIFT + U//Letter case conversion, selection of content conversion selection, selection of content auto-judgment Select Word Conversion
**ctrl + SHIFT + n**//File name lookup, open the current project under any directory of files
CTRL + SHIFT + ALT + N//function name lookup
CTRL + SHIFT + V//Display the contents of the most recent pasteboard and insert the content into the cursor position after selection
CTRL + SHIFT + I//View the value of the variable initialization, if the class in the CSS displays the current class details, and if it is JS displays the details of the function (imagine that if you look at the details on the jquery method, you can see the implementation generation If it is PHP, then it is still the details of the function

How to make Phpstorm a dedicated IDE

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.