This article introduces the shortcut keys for pycharm. Recently, I learned how to use GA to automate games, and then use pycharm to edit and test some scripts. It may be a bit difficult to comment multiple lines and one line during the trial, and then you may wonder if pycharm has a convenient method for commenting multiple lines ..
I have to say that some of pycharm's shortcut key functions are still very useful .....
Editing class:
Ctrl + Space Basic code completion (class, method, attribute)
Ctrl + Alt + Space class name complete
Ctrl + Shift + Enter
Ctrl + P parameter information (call parameters in methods)
Ctrl + Q quick document viewing
Shift + F1 external document
Ctrl + mouse introduction
Ctrl + F1 display error description or warning information
Alt + Insert automatically generated code
Ctrl + O retry method
Ctrl + Alt + T Select
Ctrl +/line comment
Ctrl + Shift +/block comment
Ctrl + W select the added code block
Ctrl + Shift + W back to the previous status
Ctrl + Shift +]/[end and start of the selected code block
Alt + Enter quick correction
Ctrl + Alt + L code formatting
Ctrl + Alt + O optimized import
Ctrl + Alt + I Auto Indent
Tab/Shift + Tab indent, do not indent the current row
Ctrl + X/Shift + Delete cut the current row or selected code block to the clipboard
Ctrl + C/Ctrl + Insert copy the current row or selected code block to the clipboard
Ctrl + V/Shift + Insert paste from clipboard
Ctrl + Shift + V paste from the nearest buffer
Ctrl + D copy the selected region or row
Ctrl + Y delete selected row
Ctrl + Shift + J add a smart line
Ctrl + Enter smart wire cutting
Shift + Enter start another line
Ctrl + Shift + U switch between the selected region or code block
Ctrl + Delete: Delete to end of character
Ctrl + Backspace delete to start character
Ctrl + Numpad +/-expand and collapse the code block
Ctrl + Numpad + expand all
Ctrl + Numpad-hide all
Ctrl + F4 close the running tab
Running class:
Alt + Shift + F10 running mode configuration
Alt + Shift + F9 debug mode configuration
Shift + F10 run
Shift + F9 debugging
Ctrl + Shift + F10 run Editor configuration
Ctrl + Alt + R run the manage. py task
Debugging class:
F8 skip
Enter F7
Shift + F8 exit
Alt + F9 run cursor
Alt + F8 verification expression
Ctrl + Alt + F8 quick expression verification
F9 recovery program
Ctrl + F8 breakpoint switch
Ctrl + Shift + F8 view breakpoints
Navigation class:
Ctrl + N jump to class
Ctrl + Shift + N jump to the symbol
Alt + Right/Left jump to the next and previous edited tab
F12 back to the previous tool window
Esc return to the editing window from the tool window
Shift + Esc hide running and recent running Windows
Ctrl + Shift + F4 close the active running tab
Ctrl + G to view the current row number and symbol
Ctrl + E pop-up of the current file
Ctrl + Alt + Left/Right move backward and forward
Ctrl + Shift + Backspace navigate to the recently edited area
Alt + F1 find the current file or ID
Ctrl + B/Ctrl + Click jump to declaration
Ctrl + Alt + B jump to implementation
Ctrl + Shift + I view quick definitions
Ctrl + Shift + B jump to type declaration
Ctrl + U jump to parent method and parent class
Alt + Up/Down jump to the previous and next methods
Ctrl +]/[jump to the end and start of the code block
Ctrl + F12 pop-up File structure
Ctrl + H type hierarchy
Ctrl + Shift + H method hierarchy
Ctrl + Alt + H call hierarchy
F2/Shift + F2 next and previous highlighted errors
F4/Ctrl + Enter edit resources and view Resources
Alt + Home display navigation bar F11 bookmarks
Ctrl + Shift + F11 bookmarks
Ctrl + # [0-9] jump to the tag bookmarks
Shift + F11 show bookmarks
Search/replace class:
Next to F3
Shift + F3 previous
Ctrl + R replace
Ctrl + Shift + F global search
Ctrl + Shift + R global replacement
Search class:
Alt + F7/Ctrl + F7 File query usage
Ctrl + Shift + F7 file usage highlighted
Ctrl + Alt + F7 display usage
Refactoring class:
F5 copy F6 cut
Alt + Delete secure deletion
Shift + F6 rename
Ctrl + F6 change signature
Ctrl + Alt + N inline
Ctrl + Alt + M extraction method
Ctrl + Alt + V extract attributes
Ctrl + Alt + F field extraction
Ctrl + Alt + C extract constant
Ctrl + Alt + P extract parameters
General:
Alt + # [0-9] open the corresponding tool window
Ctrl + Alt + Y synchronization
Ctrl + Shift + F12 maximize edit switch
Alt + Shift + F add to favorite
Alt + Shift + I check the current file according to the configuration
Ctrl + BackQuote (') quickly switch the current plan
Ctrl + Alt + S open the settings page
Ctrl + Shift + A search for all the actions in the editor
Ctrl + Tab switch between Windows
The above is a summary of the pycharm shortcut keys. For more information, see other related articles in the first PHP community!