# Python 外部文档

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/zh-cn/help/idea/llms.txt).

> **TL;DR**
> `文件 | 设置 | 工具 | Python 外部文档`  适用于 Windows 和 Linux
>
>
>
> `%instance% | 设置 | 工具 | Python 外部文档`  适用于 macOS
>
>
>
> `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) !["设置"图标](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.settings.svg)

> **Warning:**
> 以下内容仅当已 [安装并启用](managing-plugins.html)Python 和 Python Community Edition 插件时有效！

## Python 外部文档

要查看 Python 外部文档，您需要先配置文档 URL。 IntelliJ IDEA 包含 pandas、wx、kivy、PySide、PyQt5、PyQt4、matplotlib、pyramid、flask 和 gtk 的 URL。 您可以在项目   设置  中修改预定义的 URL 集或添加新的 URL。

![配置外部文档](https://resources.jetbrains.com/help/img/idea/2026.3/python_external_doc_settings.png)

|  条目  |  描述  |
| --- | --- |
|  模块名称  |  此列显示模块的名称，您希望在调用  `视图 \| 外部文档` 或按下 `Shift+F1` (Windows), `⇧ F1` (macOS), `⇧ F1` (IntelliJ IDEA Classic (macOS)), `⇧ F1` (macOS System Shortcuts), `Shift+F1` (XWin), `Shift+F1` (GNOME), `Shift+F1` (KDE), `Shift+F1` (Emacs), `Shift+F1` (Sublime Text), `⇧ F1` (Sublime Text (macOS)), `Shift+F1` (Visual Studio), `⇧ F1` (Visual Studio (macOS)), `Shift+F1` (NetBeans), `Shift+F2` (Eclipse), `⇧ F2` (Eclipse (macOS))时在浏览器中可见其文档，例如，  pandas 。  |
|  URL 模式  |     此列显示了现有 URL 模式的外部文档或本地地址，例如，  `https://pandas.pydata.org/pandas-docs/stable/generated/{element.qname}.html`        如果外部文档位于本地，请指定其本地路径。     |
|  !["添加"按钮](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg)  |     点击此按钮将新的模块及其 URL 模式或本地地址添加到列表中。     |
|  ![编辑按钮](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.edit.svg)  |     点击此按钮以更改所选模块的名称或 URL 模式。       双击表格中的条目将产生相同的结果。     |
|  !["移除"按钮](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.remove.svg)  |  从列表中删除选定的模块。  |

## 添加/编辑文档 URL

|  条目  |  描述  |
| --- | --- |
|  模块名称  |  请在文本字段中输入模块名称。  |
|  URL 模式  |     在此文本字段中，使用纯文本和来自   可用宏   字段的宏创建所需的模式。      ![修改 matplotlib 文档的 URL](https://resources.jetbrains.com/help/img/idea/2026.3/py_external_doc_matplotlib.png)    请注意，每个文档模块都有其特定的结构，因此在添加宏时要小心。     |
|  插入  |  点击此按钮以将选中的宏添加到模式。  |

