PhpStorm shortcut key settings, personalized settings, coexistence of multiple projects, change the style subject font
Custom Common shortcut keys
Follow the path: File-> Settings-> Appearance & Behavior-> Keymap-> Copy an Eclipse Copy and name it Eclipse_blog.snsgou.com
Shortcut key |
Function |
Path |
Ctrl +/ |
Double slash comment |
Main menu-> Code-> Comment width Line Comment |
Ctrl + Shilft +/ |
Block comment |
Main menu-> Code-> Comment width Block Comment |
Alt +/ |
Code prompt |
Main menu-> Code-> Completion-> Basic |
Ctrl + I |
Format code |
Main menu-> Code-> Reformat Code |
Ctrl + D |
Delete current row |
Editor Actions-> Delete Line |
Ctrl + E |
List of recently opened files |
Main menu-> View-> Recent Files |
Ctrl + W |
Close the activity window being edited. |
Main menu-> Window-> Editor Tabs-> Close |
Ctrl + F |
Search and replace the current file |
Main menu-> Edit-> Find-> Replace |
Ctrl + R |
Advanced search replacement 【Batch replacement] |
Main menu-> Edit-> Find-> Replace in Path |
Ctrl + H |
Advanced Search |
Main menu-> Edit-> Find in Path |
Ctrl + L |
Locate to specified row |
Main menu-> Navigate-> Line |
Ctrl + Alt + PageDown Ctrl + Alt + PageUp |
Copy the current row to the next (top) row. It is easier to use than Ctrl + C's simple copy function (saving the paste step), mainly used to write code where the code needs to be moved. |
Editor Actions-> Duplicate Lines |
Alt + ↓ Alt + ↓ |
Move the single-row (multi-row) code. It is also a better shortcut key than Ctrl + C. |
Main menu-> Code-> Move Statement Down
Main menu-> Code-> Move Statement Up |
Ctrl + Shift + R |
Quickly locate a file by file name (fuzzy search) (any type) |
Main menu-> Navigate-> File |
Ctrl + Shift + U |
Case-sensitive conversion |
Main menu-> Edit-> Toggle Case |
F1 |
View document |
Main menu-> View-> Quick Documentation |
F2 |
Rename |
Main menu-> Refactor-> Rename |
Ctrl + I |
Format code |
Main menu-> Code-> Reformat Code |
Ctrl + G |
Query the usage statistics of a function in a project. |
Main menu-> Edit-> Find Usages |
Coexistence of multiple projects:
PhpStorm does not know why, a project needs to open an ide, and then find a method that can coexist:
File-> settings-> Directories-> Add Content Root to Add your current project directory, as shown in:
In addition, on the "Project" panel, switch the display type to the "Project" status so that all projects can be displayed! As shown in:
How to change themes
The default font and background color are eye-catching, but we can manually change other better themes:
You can download all kinds of theme xml files from this website (http://phpstorm-themes.com,
Put the file in the PhpStorm folder, for example, c:/Users/USERNAME/. WebIde10/config/colors,
If PhpStorm is on at this time, restart the IDE to load it and change it to the topic you added,
Choose File> Settings> Editor> Colors & Fonts from the menu in the upper-left corner of IDE. select the name of the topic you just added from the drop-down menu and save the Settings.
Note:In fact, I don't like the theme provided by the above website, and it's useless. Later, I referred to the default topic of Eclipse 3.7.2 for JaveEE (which I like very much). through comparison, I set PhpStorm to my favorite code format/style step by step and set the address:
File-> Settings-> Editor-> Colors & Fonts-> PHP. Other languages (such as JavaScript, Html, and CSS) are set similarly!
PhpStorm horizontal scroll bar too short
Solve the BUG of too short horizontal scroll bar in PhpStorm, and set the programming font Consolas
Display Space/blank, line number
It refers to the display of spaces, tabs, and other blank characters into small dots and other visible characters. The effect is as follows. pay attention to the blank area at the indention.
When you open PhpStrom, the "last opened Project" is not enabled"
File-> IDE Setting-> General-> Startup/Shutdown-> deselect the "Reopen last project on startup" check box"
Remove "word spelling check"
File-> Settings-> Editor-> Inspections-> Spelling-> uncheck Typo
Configure the PHP interpreter and PHP language version
File-> Settings-> ages & Frameworks-> PHP
-> PHP language level: 5.4 (traists, short array syntax, etc .)
-> Interpreter: PHP5.4
Automatically save modified files
File-> IDE Setting-> General-> Synchronization-> Check "Save files on frame deactivation"
New version path: File-> Appearance & Behavior-> System Settings-> Synchronization->
How can I uninstall the PhpStorm plug-in?
File-> Settings-> IDE Settings-> Plugins-> remove the check box of the plug-in.
ASP
CVS Integration
Database Tools and SQL
Drupal Support
Git Integration (like TortoiseGit)
GitHub
Google App Engine Support for PHP
Java Server Pages Integration
SSH Remote Run
Remote Hosts Access
PHP Remote Interpreter
SSH Remote Run
Subversion Intrgration (TortoiseSVN is preferred)
WordPress Support
Terminal
Remove automatic detection of new versions
File-> Settings-> Updates-> deselect the Check for updates in channel Check box.
Remove the browser toolbar in the upper right corner.
[PhpStorm_7.x] File-> Settings-> IDE Settings-> Web Browsers-> uncheck
[PhpStorm_9.x] File-> Settings-> Tools-> Web Browsers-> uncheck
Do not format the code block when entering "right }"
File-> Settings-> Editor-> General-> Smart Keys
-> (A). deselect the Backspace smart indent check box.
-> (B) remove the check box "Reformat block on typing '}'"
-> (C). Reformat on paster: Select None
# How to export personalized settings, back up data, or use it for others?
Export: File-> Exporting Settings
Import: File-> Importing Settings