current position:Home>Tips for using phpstorm shortcut keys

Tips for using phpstorm shortcut keys

2022-01-27 02:10:40 Carrot rabbit

PHPStorm Using skills

double shift Search all

 Insert picture description here

ctrl + shift + n Find files quickly

 Insert picture description here

ctrl + n The name of the class to find

 Insert picture description here

ctrl + e Recent documents

 Insert picture description here

ctrl + b In a fast jump function or method , and ctrl+ Left click The effect is the same
  1. Cursor injection method
     Insert picture description here

  2. Press down ctrl+b
     Insert picture description here

ctrl + shift + alt + n Function name lookup

A little

ctrl + shift + / Multiline comment

A little

ctrl + / Single-line comments

A little

ctrl + R ( Replace )

 Insert picture description here

ctrl + y ( Delete current row )

 Insert picture description here
Press down ctrl+y
 Insert picture description here

ctrl + z ( revoke )
ctrl + d ( Copy the line where the cursor is )

ctrl + p ( Function parameter reminder )

 Insert picture description here

ctrl + c ( Copy the current line or selection )
alt + j Select the same character

 Insert picture description here

ctrl+q Displays the complete parameters of the function

 Insert picture description here

alt + insert Generate comments and versions

There are many functions
 Insert picture description here

  1. Rewriting methods
  2. The import method
  3. Join the unit test
  4. Set copyright
  5. Auto join __construct() Method
  6. wait … Not very useful
ctrl + g Positioning line

 Insert picture description here

alt + 6 Find what appears in the code // todo

 Insert picture description here

alt + shift + c View modified files

 Insert picture description here

tab Indent code

A little

shift tab Fallback indented code

 Insert picture description here

ctrl + alt + y Refresh the project cache synchronize Or folder right click synchronize
ctrl + alt + l Reformat the code

If you want to format the whole file It needs to be done first ctrl+a

ctrl + alt + L Reformat the code
ctrl + shift + f Area search and edit->find->find in path The effect is the same

 Insert picture description here
 Insert picture description here

ctrl + shift + down = *ctrl + shift + ↓ Single line code or selected code block Move down the


Check the third line of code Press down **ctrl + shift + ↓ **
 Insert picture description here

ctrl + shift + up = ctrl + shift + ↑ Single line code or selected code block Move up

 Insert picture description here

alt + down Look at the next method

( Premise : It needs to be in the class file or function file )

alt + up View the previous method

( Premise : It needs to be in the class file or function file )

ctrl + alt + F12 Jump to the location of the current file on disk

 Insert picture description here
Click to jump directly to the physical address

ctrl + shift + u Letter case conversion

 Insert picture description here
 Insert picture description here

shift + F6 rename

First, select the file to be modified , Then press the shift+f6
 Insert picture description here

Quickly lock modified files in the project

 Insert picture description here

Shift+ Left click the tab close current file
shift +esc Hide the left navigation bar
ALT+1 Hide and open the left navigation bar (project bar )

 Insert picture description here

Ctrl+Shift+J Shortcut key , All extra characters ( Space , Quotation marks and plus signs ) Has been removed

For compression js File or css Documents help , But it is not conducive to reading the source code

If you want to use this file can ctrl+a Again Ctrl+Shift+J

 Insert picture description here
After processing
 Insert picture description here

shift+ctrl+12 Expand and close the left column

 Insert picture description here
 Insert picture description here

phpStrom Quickly find methods in the current class file attribute as well as html css Code etc. Ctrl+F12

Pure code

 Insert picture description here

Code ,html blend

 Insert picture description here

pure js Code

 Insert picture description here

css Code

 Insert picture description here

bookmarks To speed up development , Short term function , It is necessary to switch back and forth development of multiple pages , If you search manually , Switching speed is too slow ,so

  1. F11 add to / Bookmark

  2. Ctrl+F11 add to / Cancel bookmark with name
     Insert picture description here
    Colored instructions have been added bookmark
    have access to ctrl+ Numbers , Quickly switch to the corresponding code block

  3. Shift+F11 Display all bookmarks
     Insert picture description here

  4. Ctrl+0…9 Jump to the bookmark with the specified number

Apple system
 Insert picture description here

copyright notice
author[Carrot rabbit],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270210374019.html

Random recommended