The first step: Open pycharm, as shown below:
Step 2: File→Power Save Mode, remove the check as shown below:
Step 3: After removing the tick, the power saving mode is no longer used. Create a new python file and enter the letters in front of the word to be entered, and it will automatically prompt. As shown below:
Knowledge point expansion:
Automatic completion of Python code
The python editors I know are Pydev, Pycharm, Sublime, Eric. There are Vim and Emacs (I heard that VS is also OK).
Pydev has been used for a period of time (about half a month). Pycharm does not take more than 2 days (30-day trial version).
Sublime is less than 8 hours, and Eric has not downloaded it yet.
Vim did not exceed 4 hours, Emacs has been used for almost half a year (it takes about 1 month to write Python)
Since I am not familiar with other editors, I want to discuss with you about auto-completion
What are the functions of the completion in each editor, and what needs to be improved
I just know the automatic completion of Emacs, so I can only talk about the completion methods and functions of Emacs here.
Functions: 1. View function parameters 2. Completion of function parameters 3. View function or class doc 4. Use of function or class doc
View the parameters of the function. pydev comes with doc, and it seems that the parameters cannot be displayed separately.
Completion of function parameters. It seems that my pydev version is not new enough (pydev2.5), maybe I can't use it. I did not find out how to do it.
Check the doc of the function or class. There should be all of them!
Use of function or class doc. Same as above.
Recommended Posts