# CMake 工具窗口

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

> **TL;DR**
> `视图 | 工具窗口 | CMake`

在此工具窗口中，您可以查看 [CMake](quick-cmake-tutorial.html)的输出消息、错误和警告。 选项卡标题对应于 [CMake 设置](cmake0.html)中指定的构建类型。

![CMake 工具窗口](https://resources.jetbrains.com/help/img/idea/2026.3/cl_cmaketutorial_toolwindow.png)

> **Tip:**
> 按 `Ctrl+F` (Windows), `⌘ F` (macOS), `⌘ F` (IntelliJ IDEA Classic (macOS)), `⌘ F` (macOS System Shortcuts), `Ctrl+F` (XWin), `Ctrl+F` (GNOME), `Ctrl+F` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+F` (Sublime Text), `⌘ F` (Sublime Text (macOS)), `⌘ F` (Xcode), `Ctrl+F` (Visual Studio), `⌘ F` (Visual Studio (macOS)), `Ctrl+F` (ReSharper), `⌘ F` (ReSharper (macOS)), `Ctrl+F` (QtCreator), `⌘ F` (QtCreator (macOS)), `Ctrl+F` (NetBeans), `Ctrl+F` (Eclipse), `Ctrl+F` (Eclipse (macOS))以在 CMake 输出中搜索：
>
> ![在 CMake 工具窗口中搜索](https://resources.jetbrains.com/help/img/idea/2026.3/cl_cmaketoolwindow_search.png)

|  图标  |  工具提示和快捷键  |  描述  |
| --- | --- | --- |
|  ![](https://resources.jetbrains.com/help/img/idea/2026.3/app-client.expui.general.refresh.svg)  |  重新加载 CMake 项目  |     点击此按钮以重新加载 CMake 项目。      > **Tip:** > 此操作也可以通过  `工具 \| CMake` 和   查找操作  对话框（ `Ctrl+Shift+A` (Windows), `⌘ ⇧ A` (macOS), `⌘ ⇧ A` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ P` (macOS System Shortcuts), `Ctrl+Shift+A` (XWin), `Ctrl+Shift+A` (GNOME), `Ctrl+Shift+A` (KDE), `Escape, X` (Emacs), `Ctrl+Shift+P` (Sublime Text), `⌘ ⇧ P` (Sublime Text (macOS)), `⌘ ⇧ A` (Xcode), `Ctrl+Shift+A` (Visual Studio), `⌘ ⇧ A` (Visual Studio (macOS)), `Ctrl+Shift+A` (ReSharper), `⌘ ⇧ A` (ReSharper (macOS)), `Ctrl+Shift+A` (QtCreator), `⌘ ⇧ A` (QtCreator (macOS)), `Ctrl+I` (NetBeans), `Ctrl+Shift+A` (Eclipse), `⌘ 3` (Eclipse (macOS))）完成。 您还可以在  `设置 \| 键位图` 中 [分配快捷键](configuring-keyboard-and-mouse-shortcuts.html#add-keyboard-shortcut)。    |
|  ![](https://resources.jetbrains.com/help/img/idea/2026.3/clouds-docker-impl.icons.expui.singleStoppedContainer.svg)  |  停止重新加载 CMake 项目  |     点击此按钮以取消 CMake 项目重新加载的过程。 当没有正在运行的活动重新加载时，该按钮将变灰。      > **Tip:** > 此操作也可以在   查找操作  对话框（ `Ctrl+Shift+A` (Windows), `⌘ ⇧ A` (macOS), `⌘ ⇧ A` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ P` (macOS System Shortcuts), `Ctrl+Shift+A` (XWin), `Ctrl+Shift+A` (GNOME), `Ctrl+Shift+A` (KDE), `Escape, X` (Emacs), `Ctrl+Shift+P` (Sublime Text), `⌘ ⇧ P` (Sublime Text (macOS)), `⌘ ⇧ A` (Xcode), `Ctrl+Shift+A` (Visual Studio), `⌘ ⇧ A` (Visual Studio (macOS)), `Ctrl+Shift+A` (ReSharper), `⌘ ⇧ A` (ReSharper (macOS)), `Ctrl+Shift+A` (QtCreator), `⌘ ⇧ A` (QtCreator (macOS)), `Ctrl+I` (NetBeans), `Ctrl+Shift+A` (Eclipse), `⌘ 3` (Eclipse (macOS))）中完成，您还可以在  `设置 \| 键位图` 中 [分配快捷键](configuring-keyboard-and-mouse-shortcuts.html#add-keyboard-shortcut)。    |
|  ![](https://resources.jetbrains.com/help/img/idea/2026.3/app-client.expui.fileTypes.config.svg)  |  打开 CMakeCache 文件  |     点击此按钮以在编辑器中打开  `CMakeCache.txt` 文件。      > **Tip:** > 此操作也可以在   查找操作  对话框（ `Ctrl+Shift+A` (Windows), `⌘ ⇧ A` (macOS), `⌘ ⇧ A` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ P` (macOS System Shortcuts), `Ctrl+Shift+A` (XWin), `Ctrl+Shift+A` (GNOME), `Ctrl+Shift+A` (KDE), `Escape, X` (Emacs), `Ctrl+Shift+P` (Sublime Text), `⌘ ⇧ P` (Sublime Text (macOS)), `⌘ ⇧ A` (Xcode), `Ctrl+Shift+A` (Visual Studio), `⌘ ⇧ A` (Visual Studio (macOS)), `Ctrl+Shift+A` (ReSharper), `⌘ ⇧ A` (ReSharper (macOS)), `Ctrl+Shift+A` (QtCreator), `⌘ ⇧ A` (QtCreator (macOS)), `Ctrl+I` (NetBeans), `Ctrl+Shift+A` (Eclipse), `⌘ 3` (Eclipse (macOS))）中完成，您还可以在  `设置 \| 键位图` 中 [分配快捷键](configuring-keyboard-and-mouse-shortcuts.html#add-keyboard-shortcut)。    |
|  ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.settings.svg)  |  |     点击此按钮以展开下拉菜单：      \|  \|  \|  \| \| --- \| --- \| --- \| \|  ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.settings.svg)  \|  CMake 设置  \|     选择此选项以打开 [CMake 设置](cmake0.html)对话框。      > **Tip:** > 您可以通过   查找操作  对话框（ `Ctrl+Shift+A` (Windows), `⌘ ⇧ A` (macOS), `⌘ ⇧ A` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ P` (macOS System Shortcuts), `Ctrl+Shift+A` (XWin), `Ctrl+Shift+A` (GNOME), `Ctrl+Shift+A` (KDE), `Escape, X` (Emacs), `Ctrl+Shift+P` (Sublime Text), `⌘ ⇧ P` (Sublime Text (macOS)), `⌘ ⇧ A` (Xcode), `Ctrl+Shift+A` (Visual Studio), `⌘ ⇧ A` (Visual Studio (macOS)), `Ctrl+Shift+A` (ReSharper), `⌘ ⇧ A` (ReSharper (macOS)), `Ctrl+Shift+A` (QtCreator), `⌘ ⇧ A` (QtCreator (macOS)), `Ctrl+I` (NetBeans), `Ctrl+Shift+A` (Eclipse), `⌘ 3` (Eclipse (macOS))）打开 CMake 设置，并在  `设置 \\| 键位图` 中 [分配快捷键](configuring-keyboard-and-mouse-shortcuts.html#add-keyboard-shortcut)以执行此操作。    \| \|  ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.nodes.editFolder.svg)  \|  更改项目根目录  \|  选择此选项以更改 [项目根目录](change-project-root-directory.html)  \| \|  \|  在 Finder 中显示生成的文件  \|  选择此选项以在操作系统的文件系统查看器中定位生成的文件（例如，Windows 的资源管理器或 macOS 的 Finder）。  \| \|  \|  禁用此配置文件  \|  禁用当前的 [CMake 配置文件](cmake-profile.html)。  \| \|   \|  重置缓存并重新加载项目  \|     点击此按钮以 [重置 CMake 缓存](reloading-project.html)并重新加载项目。      > **Tip:** > 此操作也可以通过  `工具 \\| CMake` 和   查找操作  对话框（ `Ctrl+Shift+A` (Windows), `⌘ ⇧ A` (macOS), `⌘ ⇧ A` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ P` (macOS System Shortcuts), `Ctrl+Shift+A` (XWin), `Ctrl+Shift+A` (GNOME), `Ctrl+Shift+A` (KDE), `Escape, X` (Emacs), `Ctrl+Shift+P` (Sublime Text), `⌘ ⇧ P` (Sublime Text (macOS)), `⌘ ⇧ A` (Xcode), `Ctrl+Shift+A` (Visual Studio), `⌘ ⇧ A` (Visual Studio (macOS)), `Ctrl+Shift+A` (ReSharper), `⌘ ⇧ A` (ReSharper (macOS)), `Ctrl+Shift+A` (QtCreator), `⌘ ⇧ A` (QtCreator (macOS)), `Ctrl+I` (NetBeans), `Ctrl+Shift+A` (Eclipse), `⌘ 3` (Eclipse (macOS))）完成。 您还可以在  `设置 \\| 键位图` 中 [分配快捷键](configuring-keyboard-and-mouse-shortcuts.html#add-keyboard-shortcut)。    \|    |
|  ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.up.svg)  |  上一个  |  点击此按钮以导航到上一个错误或警告。  |
|  ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.down.svg)  |  下一个  |  点击此按钮以导航到下一个错误或警告。  |
|  ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.softWrap.svg)  |  使用软换行  |  点击此按钮以打开或关闭输出的软换行模式。  |
|  ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.scrollDown.svg)  |  滚动到末尾  |  点击此按钮以跳转到最后一个错误或警告。  |
|  ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.print.svg)  |  打印  |  点击此按钮以打印输出。  |
|  ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.actions.gc.svg)  |  清除所有  |  点击此按钮以清除所有消息。  |

## See also

### 语言、框架与技术

[CLion 功能支持多种语言](clion-features-in-different-languages.html)

### 参考

[CMake](cmake0.html)

### 流程

[快速 CMake 教程](quick-cmake-tutorial.html)

### 外部链接

[JetBrains CLion Blog](http://blog.jetbrains.com/clion/)

