Pycharm and custom shortcuts
Default shortcut
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 + Z/Ctrl + Shift + Z undo and undo
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 custom shortcut key is as follows:
1. File-> setting-> keymap
2. Find the function to be modified
3. Right-click and select -- select "add keyboard shortcut cut"
4. directly set the key fields as needed, such as F6
5. OK