table of Contents
Five, replace the download source
Nine, view common commands for automatic completion
10. Retrieve files deleted by mistake (Revert recovery)
11. Operation parameter setting
13. TODO solves the interruption of thinking
One, switch compiler
If you don’t want to use the environment, you don’t need to rebuild the project. Just adjust it!
2. Set developer information
Three, some shortcut keys
New file: ALT+INSERT
Run the project: CTRL+SHIFT+F10
Debug project: CTRL+SHIFT+F9
Comment/uncomment code: CTRL+/
Quickly go back to the place you just edited: CTRL+ALT+left/right
Insert row quickly: SHIFT+ENTER
Quick selection code: CTRL+W
Rename the file and its references: CTRL+T
View function documentation: CTRL+P
Quickly copy the current line: CTRL+D
Code folding: CTRL+-
Quickly locate the error line: F2
Set bookmark: F11, CTRL + bookmark number to locate the bookmark
Four, code debugging
Set breakpoint
Debugger interface
From left to right: single-step debugging (do not enter sub-function), single-step debugging (enter sub-function), execute the next line but ignore libraries, execute the next line ignore lib and construction objects, etc., when the current execution is in sub-function a , Select this debugging operation to jump directly out of sub-function a without continuing to execute the remaining code in sub-function a. And return to the previous function and jump directly to the next breakpoint
Open the shell for debugging and store the variable values in the function. The following method is also possible
Five, replace the download source
Six, refactor the code
Seven, set PEP8 check
Eight, coding modification
Nine, view common commands for automatic completion
10. Retrieve files deleted by mistake (Revert recovery)
11. Operation parameter setting
For example, in the following, fill in init --local in Paramaeters
python main.py init --local
12. Code performance analysis
13. TODO solves the interruption of thinking
ALT+6 can bring up all TODO interfaces