1. Theme
We have already contacted the code spelling hint in Getting Started guide, and we will introduce it in detail here.
A spelling hint is a list of words (function names, class names, variable names, and so on) that are available at the current location.
2, enable the spelling prompt function
In any case, we can use the Ctrl+space shortcut key to start the spelling prompt function.
In fact, the spelling hint function is initiated by default when you enter code, and of course it includes the domain member prompt after the input point number. When you continue typing, the spelling list narrows to match the characters you enter. As a result, the spelling hint function is also relatively intelligent and matches the currently entered string in any location for the user to choose from:
Of course, if you want to turn off the spelling prompt, you can open the Spelling prompt dialog box by ctrl+alt+s→settings→editor→code Completion command, and cancel autopopup Code completion in (MS) /c0> check box can be checked.
3. How to use the Spelling tips list
Use the mouse pointer or the Up/down key to select the name you want to enter in the list of spelling hints:
Here you can use the Right/left key to adjust the spelling list width.
Then you need to insert the selected name into the current location, and Pycharm provides two ways to insert it:
(1) Press ENTER, the corresponding variable will be added to the position of the current cursor:
(2) Press the TAP key, the selected name will replace the current cursor to the right side of the string:
4. spelling prompt function change
Press Ctrl+alt+s to open the Settings dialog box, expand the Editor node, and click the Code completion page:
As you can see, Pycharm allows us to make a variety of changes to the spelling tips to meet the requirements, and if you don't know the specific features of certain options, click the Help button to get assistance.
For more information about spelling tips see this link.
If you feel that this article has inspired you, please pay attention to my public number, I will be as active as possible to communicate with you, thank you.