Python3 frequently used shortcuts--will be updated in the study

Source: Internet
Author: User

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).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.