If you want to do good work, you must first sharpen your tools. The common shortcut keys and configurations of Python development tool Pycharm are as follows. I believe that with these shortcut keys, your development will be more effective with less effort.
Common shortcut keys
Edit class:
Ctrl + D Duplicate selected area or line
Ctrl + Y Delete selected line
Ctrl + Alt + L Code formatting
Ctrl + Alt + O Optimize import (remove unused package imports)
Ctrl + Mouse Introduction / Enter code definition
Ctrl + / line comment, uncomment
Ctrl + Left Square Bracket Quickly jump to the beginning of the code
Ctrl + Right square bracket Quickly jump to the end of the code
Shift + F10 Run
Shift + F9 Debug
Find/Replace classes:
Ctrl + F Find in current file
Ctrl + R Replace in current file
Ctrl + Shift + F Global Find
Ctrl + Shift + R Global Replace
Run Class:
Shift + F10 Run
Shift + F9 Debug
Alt + Shift + F10 Run Mode Configure
Alt + Shift + F9 Debug Mode Configure
Debug Class:
F8 Single Step (one line by one walk)
F7 Enter Internal
Shift + F8 Exit
Ctrl + F8 Add a breakpoint/breakpoint switch to the current line
Ctrl + Shift + F8 View all breakpoint
navigation classes:
Ctrl + N Quickly find classes (you can also find files in the current project, with file names Find)
Double Shift Find anywhere
Configure your favorite shortcut keys
file——“setting——“Enter keymap in the search box, as shown in the figure:
Note: Search for the function to be modified at the position marked 1 in the above figure, and find the position of 2 directly through the shortcut key
1 Modify the shortcut key to quickly jump to the end of the line: enter end at position 1 to find: Move Caret to Line End
2 Modify the shortcut key to quickly jump to the beginning of the line: same as above, modified to Ctrl+quote
3 Modify the shortcut key to quickly return to the position of the last operation:
Other settings
1. By default in Pycharm, you cannot use Ctrl+wheel to change the font size. You can set it in file -> Setting ->Editor->General -> Mouse
2. To set the font of Pycharm, you must first set it in file -> Setting ->Editor ->Select a style in Font and save it, then you can change
it