Phpstorm shortcut keys and configuration


Common shortcut keys

Setting shortcut: File > Settings > ide settings  -> Keymap – > select “Eclipse” – > then “copy” a copy of it, and then personalize the shortcut key

Common shortcut keys( keymaps:Default (in this case)

ESC key editor (from tool window)
F1     Help do not press is too laggy!
F2(Shift+F2)   Down / up highlight error or warning quick positioning
F3     Look down to where the keyword appears
F4     Find variable source
F5   Copy file / folder
F6   move
F11   toggle bookmark
F12   Return to the previous tool window

be careful: some shortcut keys can only be used without changing the shortcut key

**Query shortcut
**CTRL+N     Find class
CTRL+SHIFT+N    Find the file and open the file in the project (similar to Ctrl + Shift + R in eclipse). The purpose is to open the file in any directory under the current project
CTRL+SHIFT+ALT+N   Find a method or variable in a class (JS)
CIRL+B     Find the source of the variable and jump to the variable declaration
CTRL+ALT+B    Find all subclasses
CTRL+SHIFT+B    Find the class of the variable
CTRL+G     Location line, jump line
CTRL+F     Find text in current window
CTRL+SHIFT+F    Find text in specified path
CTRL+R   Replace text in current window
CTRL+SHIFT+R    Replace text in the specified path
ALT+SHIFT+C    Find modified files, recent change history
CTRL+E     Recently opened files
F3   Find next
SHIFT+F3    Find previous
F4     Find variable source
CTRL+ALT+F7    Select the character to find where the project appears
Alt + F7 queries the selected character directly
Ctrl+F7   Query the selected characters in the file

**Automatic code
**Alt + ENTER    Import package, auto fix
CTRL+ALT+L    formatting code
CTRL+ALT+I    Auto indent
CTRL+ALT+O    Optimize imported classes and packages
CTRL+E   Recently changed files / codes
CTRL+SHIFT+SPACE   switch windows
CTRL + space space   Code automatically complete, code prompt, generally conflict with the input method
CTRL+ALT+SPACE    Class name or interface name prompt (conflicts with system)
CTRL+P     Method parameter prompt displays the default parameters
CTRL+J     Automatic code prompt, automatic completion
CTRL+ALT+T    Put the selected code in try {} if} else {}
ALT+INSERT    Generate code (such as get, set method, constructor, etc.)

**Copy shortcut
**F5   Copy file / folder
CTRL+C   copy
CTRL+V   paste
CTRL+X     Cut, delete line
CTRL+D     Copy row
Ctrl + Y     Delete line caret
CTRL+SHIFT+V    You can copy multiple texts  

**CTRL+F     Highlight the selected text and jump up and down to the next or previous one
F2 (Shift + F2) highlight error or warning fast positioning
SHIFT+F2    Highlight errors or warnings for quick positioning
CTRL+SHIFT+F7    Highlight multiple keywords  
Local history VCs / SVN
Alt + counter quotation (‘) pop up VCs menu quickly
Ctrl + K         Submit project VCS
Ctrl + T         Update project from VCs
Alt + Shift + C   View recent changes

Other shortcuts
CTRL+Z         Retrogression (code regret)
CTRL+SHIFT+Z    forward
CTRL+H         Display class structure diagram
Ctrl +F12       File structure pop up
Ctrl+Shift+H   Hierarchy of methods
Ctrl+Alt+H     Call hierarchy
CTRL+Q     Show code comments
CTRL+W     Select the code and press continuously to have other effects
Ctrl+Shift+W   Reduces the current selection to the previous state
CTRL+B   Go to the declaration and quickly open the class or method description comment at the cursor (Ctrl + mouse click is also available)
CTRL+O   Magic Methods
CTRL+/     Comment / / uncomment  
CTRL+SHIFT+/    Notes//
CTRL+ []   Move the cursor to the beginning or end of {} []
CTRL+SHIFT+[]     Check the block code, you can quickly copy
CTRL + ‘- / +’: you can collapse any code block in the project, including any nodeType = 3 element in HTM, function, or object direct quantity, etc. Instead of selecting a fold, it automatically recognizes the fold.

CTRL + ‘.’: collapses the code of the selected code
Ctrl+Shift+U   Case conversion of selected characters
ctrl+shift+i       Quick view of variable or method definition source
CTRL+ALT+F12    Explorer opens the folder and jumps to the location of the current file on the disk
ALT+F1   Select any view toolbar in the current file or menu
SHIFT+ALT+INSERT   Vertical editing mode
CTRL+ALT ←/→    Returns the location of the last edit
ALT+ ←/→    Switch code view, label switch
ALT+ ↑/↓    Fast mobile location between methods
Alt +’7 ‘: displays the current class / function structure. Similar to the effect of outline in eclipse. The experiment is a bit more awesome than aptana, but it still can not fully show the name of the method under prototype.
SHIFT+F6   Rename / refactor variables in the current region
You can rename not only the file name, but also the function name. The function name can search the referenced file and rename the local variable. You can also rename the tag name. There is a similar shortcut key in sublime text: Ctrl + Shift + D.
CTRL + Shift + enter (smart perfect code, such as if ())  
CTRL + Shift + up / down  
CTRL+UP/DOWN    The cursor jumps to the first or last line of the editor display area
ESC     The cursor returns to the edit box
SHIFT+ESC    The cursor returns to the edit box and closes useless windows
CTRL+F4     Close the current editor or tab
CTRL + Alt + V introduce variable
CTRL + Alt + F is similar to introducing variables
CTRL + Alt + C introduce constant
Ctrl + Tab   Key to switch between tabs and tool windows
Ctrl + Shift + A   Find shortcuts
Alt + #[0-9]       Open the corresponding tool window
CTRL + Shift + F12 toggle maximize editor
Alt + Shift + F     add to favorites
Alt + Shift + I     Check the current file with the current configuration file
CTRL + back quote (‘)   Quickly switch the current color matching / code scheme / shortcut key scheme / interface scheme
Ctrl + Alt + S     Open the settings dialog box (conflict with QQ)
Alt + Shift + F10   Select the configuration and operation of the system
Alt + Shift + F9   Select configuration and debug
Shift + F10         function
Shift + F9 debugging
CTRL + Shift + F10 run range configuration editor
Run command line with Ctrl + Shift + X
Step F8
F7 enters
Shift + F7 smart entry
Shift + F8 steps
Alt + F9 runs to the cursor
Alt + F8 evaluation expression
F9 recovery procedure
CTRL + F8 switch breakpoint
CTRL + Shift + F8 view breakpoints
Shift + ESC to hide the active or last active window
CTRL + Shift + F4 close the activity run / message /… Tab
CTRL + Shift + backspace to navigate to the last edit position
Ctrl + Alt+B   To implement (s)
Ctrl + Shift+I   Open quick definition query
Ctrl + U         Go to super method / super class
Alt + Home       Integrated display navigation bar
CTRL + F11 toggle bookmark mnemonic
CTRL + [0-9] go to number bookmark
Shift + F11 show bookmarks
Ctrl + Q       Quick document query
ALT + INSERT   Generated code… Getter (getter, setter method, constructor)
Ctrl + O       Coverage method
Ctrl + I       Implementation method
Alt + Enter   Show intent action and quick fix
Shift + Tab   Key to indent / UN indent the selected line
Ctrl + Shift + J   Smart cable connection (HTML and JavaScript only)
Ctrl + Enter       Smart line segmentation (HTML and JavaScript)
Shift + Enter     Start a new production line
Ctrl + Delete   Delete word
CTRL + backspace delete word start
CTRL + keyboard + / – expand / collapse code block
CTRL + Shift + keypad + expand all
CTRL + Shift + numeric keyboard close all

2. Display line number

Settings > editor > Appearance tab, check show line numbers

3. The cursor is not positioned at will

In Settings > editor, remove allow placement of care after end of line.

4. Do not open the project file when starting

Settings > General re open last project on startup

5. Unable to start Tomcat(   IntelliJ IDEA)

Please use the zip version of Tomcat

6. Shortcut key problem

You can use the shortcut keys of other software,
How to solve the conflict between default code prompt and completion shortcut key and input method: Settings > keymap

In the figure above, click Copy to create a new scheme, such as T1

Then start setting shortcut keys. When modifying, right-click to pop up the menu, as shown in the figure below, and change to the shortcut key you want

Phpstorm shortcut keys and configuration

8. Use * to identify the edited document

Editor –> Editor Tabs
Check mark modified tasks with asterisk  

9. Code setting: Chinese garbled in editor

This is the wrong character code setting of the project
FILE ->Settings->       There are three settings according to your own needs
IDE encoding: ide encoding, select GBK as ide encoding. We have to adjust ourselves here
Project encoding: Project coding
Default encoding for properties files

10. Font and size in editor

File > Settings > editor > colors & fonts > font > right
Size: font size
Line spacing: line spacing
In the next box are the fonts, left side, optional font, right side, practical font

Phpstorm shortcut keys and configuration

11. Display folder or file filter

File->Setting->File Types->Ignore file and folders
Fill in what you want to filter and don’t show
Pay attention to the case

12. Current edit file location

Method 1)   In the edited file, press Alt + F1, and then select project view

Phpstorm shortcut keys and configuration

Method 2) the positioning icon at the top of the left item list box

Phpstorm shortcut keys and configuration

13. Optimize file preservation

Synchronize file on frame activation: do you want to cancel the file synchronization
Save files on framedeactivation: Cancel
Save files automatically: select, set auto save, set auto save time of 30 seconds, so idea can still save files automatically, so you need to press Ctrl + s to save files every time you switch
Article source…

Recommended Today

Large scale distributed storage system: Principle Analysis and architecture practice.pdf

Focus on “Java back end technology stack” Reply to “interview” for full interview information Distributed storage system, which stores data in multiple independent devices. Traditional network storage system uses centralized storage server to store all data. Storage server becomes the bottleneck of system performance and the focus of reliability and security, which can not meet […]