---
title: "构建 - 主菜单 - MetaEditor 帮助"
description: "该菜单包含将源代码编译成可执行文件的命令... - 构建 - 主菜单 - MetaEditor 帮助"
image: "https://www.metatrader5.com/i/logo_metatrader5.png"
---

[MetaEditor 帮助](https://www.metatrader5.com/zh/metaeditor/help) → [主菜单](https://www.metatrader5.com/zh/metaeditor/help/main_menu) → 构建

# 构建

该菜单包含将源代码编译成可执行文件的命令。

|  | 命令 | 描述 |
| --- | --- | --- |
| ![编译](https://www.metatrader5.com/i/help/metaeditor/en/compile_icon.png) | 编译 | [编译](https://www.metatrader5.com/zh/metaeditor/help/development/compile) 当前活动窗口中的程序代码。 |
| ![编译打开文件](https://www.metatrader5.com/i/help/metaeditor/en/compile_open_files_icon.png) | 编译打开文件 | 编译当前所有打开进行编辑的文件。 |
| ![取消编译](https://www.metatrader5.com/i/help/metaeditor/en/compile_stop_icon.png) | 取消编译 | 停止编译过程。该命令可适用于需要很长时间才能编译的大型项目。 |
|  | 最大优化 | 启用 [编译模式](https://www.metatrader5.com/zh/metaeditor/help/development/compile#mode) 可使代码性能最大化。 |
|  | 没有优化 | 启用 [快速编译](https://www.metatrader5.com/zh/metaeditor/help/development/compile#mode) 模式。 |

```json
{"@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ {"@type": "ListItem", "position": 1, "item": {"@id": "/zh/metaeditor/help", "name": "MetaEditor 帮助"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "/zh/metaeditor/help/main_menu", "name": "主菜单"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "/zh/metaeditor/help/main_menu/main_menu_build", "name": "构建"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: 构建", "acceptedAnswer": { "@type": "Answer", "text": "该菜单包含将源代码编译成可执行文件的命令..." } }] }
```
