Python Console: Show suggestions as you type
I'm a big fan of the code completion feature that automatically shows pop-ups with completion suggestions as you are typing. It works when writing in both languages I'm currently using, kotlin and python.
The option can be found in Preferences -> Editor -> General -> Code Completion
But in the interactive Python console, I'm afraid it does not work. Though I see no reason why it shouldn't because selecting from the menu Code -> Completion -> Basic or activating that action through a hotkey while the cursor is in the console shows a similar pop-up.
Perhaps the option I mentioned above can work for both the Editor and the Python Console, or perhaps there could be a separate option in Build, Execution, Deployment -> Console -> Python Console
Please sign in to leave a comment.
Hi, I believe it's mostly due to historical reasons. I created a ticket in our bug tracker: PY-31669. Please feel free to follow and comment.
Thanks Pavel! Quick, related question: can we clear the buffer in the ipython console?
I've tried looking for an IDE action, but could not find anything.
I searched the python console docs, but could not find anything.
I tried both `!clear ` and `import os; os.system('clear')' (I'm on a Mac btw), but both commands resulted in `TERM environment variable not set.`
>can we clear the buffer in the ipython console?
Unfortunately, it is not possible at the moment. There's an old relevant issue in the tracker but it had a little traction https://youtrack.jetbrains.com/issue/PY-12387