<type>documentation</type>
<domain>edit</domain>
<id>how-completion-works</id>
<title>How Auto-completion Works</title>
<date>$Date$</date>
<version>$Revision$</version>
<product>all</product>
 
The information shown in Wing's auto-completer comes from several sources: (1) static
analysis of Python code, (2) runtime introspection of extension modules, (3) inspection of
keywords and builtins in the active Python version, (4) introspection of the live runtime
state, when the debugger is active or when working in the ``Python Shell`` or ``Debug
Console``, (5) enumeration of relevant code snippets, and (6) any user-provided interface
description files.

See `Source Code Analysis <ref:edit/source-code-analysis>`__ for more information on how
analysis works and how you can help Wing determine the types of values.
  
~~~if not WING101:
In non-Python files, the auto-completer is limited to words found within similar contexts
in the file, syntax highlighting keywords defined for that file type, and any snippets
relevant to the editing context.
~~~

