Understanding python.analysis.supportAllPythonDocuments in Pylance
June 23, 2026 · View on GitHub
Pylance is a fast and feature-rich language server extension for Python in Visual Studio Code, powered by the Pyright static type checker.
The python.analysis.supportAllPythonDocuments setting extends Pylance's IntelliSense to Python content that appears outside of regular .py files.
What is python.analysis.supportAllPythonDocuments?
By default, Pylance provides language features for Python source files. When this setting is enabled, Pylance also offers IntelliSense in other places where Python content can appear — for example, the integrated terminal or diff views.
This exists to bring completions and related features to Python shown in non-file contexts.
Type: boolean
Default: false
Scope: resource (can be set per workspace or folder)
Note: This is an experimental capability. If you enable it and notice instability, disable it to return to the standard behavior.
How to Change python.analysis.supportAllPythonDocuments
Using the Settings UI
- Open the Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) and run Preferences: Open Settings (UI). - Search for
python.analysis.supportAllPythonDocuments. - Check the box to enable it.
Using settings.json
{
"python.analysis.supportAllPythonDocuments": true
}
When to Use It
- Enable if you want IntelliSense for Python content shown in places such as the terminal or diff views.
- Keep disabled (the default) for the standard, file-based experience.
Related Settings
python.analysis.autoImportCompletions— offers completions for symbols that are not yet imported.
For more information on Pylance settings and customization, refer to the Pylance Settings and Customization documentation.
This document was generated with the assistance of AI and has been reviewed by humans for accuracy and completeness.