This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDLE intellisense
Type: enhancement Stage: resolved
Components: IDLE Versions: Python 3.10
process
Status: closed Resolution: duplicate
Dependencies: Superseder: IDLE completions: format, factor, and fix
View: 27609
Assigned To: terry.reedy Nosy List: Saumitra Verma, epaine, terry.reedy
Priority: normal Keywords:

Created on 2020-07-07 12:17 by Saumitra Verma, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg373222 - (view) Author: Saumitra Verma (Saumitra Verma) Date: 2020-07-07 12:17
There should be a simple autocomplete(intellisense) in idle.
msg373224 - (view) Author: E. Paine (epaine) * Date: 2020-07-07 12:51
If I understand the issue correctly, such a feature already exists. Currently, the wait before showing the list of completions is 2 seconds (https://github.com/python/cpython/blob/master/Lib/idlelib/config-extensions.def#L7) though this can be changed in settings. It is not as advanced as you would find in other IDEs, though it generally does the job.
msg373253 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2020-07-07 21:48
IDLE already has autocomplete of names, attributes, and string paths.  This is documented in the Completion subsection of the Editing and Navigation section of the doc, easily accessible on the Help menu.  Please read the doc before suggesting enhancements.

Issue 27609 summarizes approximately 10 existing bpo issues for improving completions.  Please check the list there before suggesting a specific change.

I believe that 'Intellisense' is a Microsoft's trademark for a Visual Studio feature.  It should not be used generically.  Since I only ever used VS, in the past, to compile python.exe, I never knew what Intellisense did, just that it made me wait when I opened VS.  (/PCBuild in the CPython repository now has build.bat to directly invoke the compiler without this delay.)

I am guessing from your wording that at least part of the Intellisense delay is to recompile the database needed for completions.  As a C++ program, VS cannot import python the current text of python modules the way that a python-coded IDE can.  It might be nice to add something to the stdlib that could be used by any python editor or shell, but I will not pursue that until existing issues are finished.
History
Date User Action Args
2022-04-11 14:59:33adminsetgithub: 85402
2020-07-07 21:48:20terry.reedysetstatus: open -> closed
superseder: IDLE completions: format, factor, and fix
messages: + msg373253

resolution: duplicate
stage: resolved
2020-07-07 12:51:48epainesetnosy: + epaine

messages: + msg373224
versions: - Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9
2020-07-07 12:19:10Saumitra Vermasetversions: + Python 3.5, Python 3.6, Python 3.7, Python 3.9, Python 3.10
2020-07-07 12:17:37Saumitra Vermacreate