---
title: "File - Main menu - MetaEditor Help"
description: "This menu features commands for working with functions of a program source code: opening, closing, saving, compiling and... - File - 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_file"
---

[MetaEditor Help](https://www.metatrader5.com/en/metaeditor/help) → [Main menu](https://www.metatrader5.com/en/metaeditor/help/main_menu) → File

# File

This menu features commands for working with functions of a program source code: opening, closing, saving, compiling and printing. The following commands are available in this menu:

|  | Command | Description |
| --- | --- | --- |
| ![New](https://www.metatrader5.com/i/help/metaeditor/en/new_icon.png) | New | Create a new program using [MQL4/MQL5 Wizard](https://www.metatrader5.com/en/metaeditor/help/mql5_wizard). |
| ![Open...](https://www.metatrader5.com/i/help/metaeditor/en/open_icon.png) | Open... | Open a program's source code for editing in MetaEditor. |
|  | Close | Close an active program code editing window. |
| ![Save](https://www.metatrader5.com/i/help/metaeditor/en/save_icon.png) | Save | Save changes in an active window. |
|  | Save As... | Save a program code of an active window under a new name. |
|  | Save As Unicode... | Save a program code of an active window in a Unicode file. |
| ![Save All](https://www.metatrader5.com/i/help/metaeditor/en/save_all_icon.png) | Save All | Save changes in all open windows. |
| ![Compile](https://www.metatrader5.com/i/help/metaeditor/en/compile_icon.png) | Compile | [Compile](https://www.metatrader5.com/en/metaeditor/help/development/compile) a code of a program currently opened in an active window. |
| ![Compile Open Files](https://www.metatrader5.com/i/help/metaeditor/en/compile_open_files_icon.png) | Compile Open Files | [Compile](https://www.metatrader5.com/en/metaeditor/help/development/compile) all files currently opened for editing. |
| ![Cancel Compilation](https://www.metatrader5.com/i/help/metaeditor/en/cancel_compilation_icon.png) | Cancel Compilation | Cancel compilation. |
| ![Open Data Folder](https://www.metatrader5.com/i/help/metaeditor/en/open_data_folder_icon.png) | Open Data Folder | Open [trading platform data](https://www.metatrader5.com/en/metaeditor/help/structure) storage directory. |
| ![Open Common Data Folder](https://www.metatrader5.com/i/help/metaeditor/en/open_common_folder_icon.png) | Open Common Data Folder | Open a folder where common data of all trading platforms on PC are stored: System_disk:\ProgramData\MetaQuotes\Terminal\Common |
|  | Print Setup... | Common settings of print settings – selecting a printer, paper size, page orientation and so on. |
| ![Print Preview](https://www.metatrader5.com/i/help/metaeditor/en/print_preview_icon.png) | Print Preview | Check a page before printing (for example, whether all data is to be printed). Settings of a selected printer are used for preview. |
| ![Print...](https://www.metatrader5.com/i/help/metaeditor/en/print_icon.png) | Print... | Print the code in the current window. |
|  | Exit | Close MetaEditor. |

## In this section

- 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](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_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_file", "name": "File"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: File", "acceptedAnswer": { "@type": "Answer", "text": "This menu features commands for working with functions of a program source code: opening, closing, saving, compiling and printing. The following..." } }] }
```
