---
title: "Build - Main menu - MetaEditor Help"
description: "This menu contains commands for compiling source code into executable files... - Build - Main menu - MetaEditor Help"
image: "https://www.metatrader5.com/i/logo_metatrader5.png"
url: "https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_build"
---

[MetaEditor Help](https://www.metatrader5.com/en/metaeditor/help) → [Main menu](https://www.metatrader5.com/en/metaeditor/help/main_menu) → Build

# Build

This menu contains commands for compiling source code into executable files.

|  | Command | Description |
| --- | --- | --- |
| ![Compile](https://www.metatrader5.com/i/help/metaeditor/en/compile_icon.png) | Compile | [Compile](https://www.metatrader5.com/en/metaeditor/help/development/compile) the program code in the currently active window. |
| ![Compile Open Files](https://www.metatrader5.com/i/help/metaeditor/en/compile_open_files_icon.png) | Compile Open Files | Compile all files currently open for editing. |
| ![Cancel Compilation](https://www.metatrader5.com/i/help/metaeditor/en/compile_stop_icon.png) | Cancel Compilation | Stop the compilation process. The command can be useful for large projects which may take a long time to compile. |
|  | Maximum Optimization | Enable [compilation mode](https://www.metatrader5.com/en/metaeditor/help/development/compile#mode) which maximizes code performance. |
|  | No Optimization | Enable the [fast compilation](https://www.metatrader5.com/en/metaeditor/help/development/compile#mode) mode. |

## In this section

- [File](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_file)
- [Edit](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_edit)
- [Git](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_git)
- [Search](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_search)
- [View](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_view)
- [Debug](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_debug)
- Build
- [Tools](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_tools)
- [Window](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_window)
- [Help](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_help)

```json
{"@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ {"@type": "ListItem", "position": 1, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help", "name": "MetaEditor Help"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help/main_menu", "name": "Main menu"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_build", "name": "Build"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: Build", "acceptedAnswer": { "@type": "Answer", "text": "This menu contains commands for compiling source code into executable files..." } }] }
```
