Python3 frequently used shortcuts--will be updated in the study
no Bujikuibu and no miles
After installing IDLE right mouse click *.py file, you can see edit with IDLE Select this can directly open editor.
Idle default can not display line numbers, use Alt+g to jump to the corresponding line number, in the lower right corner of the display cursor is the row, column.
One: *"Use these shortcuts, only the application can remember" *
Alt+p, the previous history entry, alt+n the next historical entry.
Press F5 in idle to run the code.
Two:
When editing a state:
CTRL + [, CTRL +] indent code
Alt+3 alt+4 comments, uncomment lines of code
Alt+5 alt+6 Toggle Indent Space <=>tab
alt+/Word is completed, as long as the text appears, you can help you automatically. More than a few times to cycle the selection
Alt+m Open the module code, first select the module, and then press this shortcut, will help you open the change module of the PY source for browsing
Alt+c opens the class browser to facilitate switching between the individual method bodies in the source file
ALT+FP Open Path Browser, easy to select Import package for viewing browsing
F1 Open the Python document without setting up.
It is worth noting that ctrl+space this shortcut and Windows Input Method switch Hot key conflict, it does not matter, when you really need to stop when prompted, there will still be code hints. Other commonly used shortcuts are just as good as they used to be.
In the editing process, press F5 to enter the shell debugging. There are also shortcuts in the shell, which are also handy
ALT+DG Navigate to the wrong row, press this shortcut to quickly navigate to the error location
Alt+ds directly show the history of error, find the root cause, convenient AH
Alt+da if you have to press every time, it is not convenient, press this, the future mistakes are out of history
ALT+DD to open the debugging window, into a single step debugging, convenient.
Ctrl+f6 to clear the previous import record, and so on, restart the shell
It's also worth noting that
Alt+n Alt+p can find previously entered commands to complement the current command
Ctrl + ARROW keys can be enhanced, try on the Spirit (4490).