---
title: "编辑 - 主菜单 - MetaEditor 帮助"
description: "该菜单包含操控程序源代码的命令... - 编辑 - 主菜单 - MetaEditor 帮助"
image: "https://www.metatrader5.com/i/logo_metatrader5.png"
url: "https://www.metatrader5.com/zh/metaeditor/help/main_menu/main_menu_edit"
---

[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/undo_icon.png) | 撤销 | 撤销最后的动作。 |
| ![重做](https://www.metatrader5.com/i/help/metaeditor/en/redo_icon.png) | 重做 | 重做上次撤消的动作。 |
| ![剪切](https://www.metatrader5.com/i/help/metaeditor/en/cut_icon.png) | 剪切 | 剪切选定的源代码片段以便将其粘贴到它处。 |
| ![复制](https://www.metatrader5.com/i/help/metaeditor/en/copy_icon.png) | 复制 | 将选定的源代码片段复制到剪贴板。 |
| ![粘贴](https://www.metatrader5.com/i/help/metaeditor/en/paste_icon.png) | 粘贴 | 将复制或剪切的源代码片段粘贴到指定的位置。 |
| ![剪贴板](https://www.metatrader5.com/i/help/metaeditor/en/clipboard_icon.png) | 剪贴板 | 打开剪贴板。 MetaEditor 最多可以保存最后 30 个复制到剪贴板的条目。 这将打开一个存储条目的列表，允许您将选定的一个粘贴到代码中。 |
| ![删除](https://www.metatrader5.com/i/help/metaeditor/en/delete_icon.png) | 删除 | 删除选定的源代码片段。 |
| ![AI Assistant提示](https://www.metatrader5.com/i/help/metaeditor/en/ai_assistant_prompt_icon.png) | AI Assistant提示 | 发送代码部分作为 [AI Assistant提示](https://www.metatrader5.com/zh/metaeditor/help/development/ai_assistant#prompt) ，以获得如何完成它的建议。 |
| ![通过AI Assistant解释](https://www.metatrader5.com/i/help/metaeditor/en/ai_assistant_explain_icon.png) | 通过AI Assistant解释 | 将选择的代码部分发送给AI Assistant [，获得其描述](https://www.metatrader5.com/zh/metaeditor/help/development/ai_assistant#explain)。 |
| ![全选](https://www.metatrader5.com/i/help/metaeditor/en/select_all_icon.png) | 全选 | 选择激活窗口中的所有源代码。 |
|  | 粘贴 | 打开子菜单以便快速[插入资源](https://www.metatrader5.com/zh/metaeditor/help/development/intelligent_management#resource)。 |
|  | 转换 | 打开子菜单[将文本转换为](https://www.metatrader5.com/zh/metaeditor/help/development/intelligent_management#convert)不同格式。 |
|  | 书签 | 打开子菜单操控 [书签](https://www.metatrader5.com/zh/metaeditor/help/development/intelligent_management#bookmarks)。 书签用于高亮显示程序源代码中的行。 |
|  | 附属 | 打开子菜单操控源代码: 插入 [注释](https://www.metatrader5.com/zh/metaeditor/help/development/intelligent_management#comments), 插入 [缩进](https://www.metatrader5.com/zh/metaeditor/help/development/intelligent_management#additional), [转换大小写](https://www.metatrader5.com/zh/metaeditor/help/development/intelligent_management#additional)。 |
|  | 存储 | 打开子菜单来使用 [MQL5存储](https://www.metatrader5.com/zh/metaeditor/help/mql5storage/mql5storage_working)。 |
| ![名称列表](https://www.metatrader5.com/i/help/metaeditor/en/list_names_icon.png) | 名称列表 | 当编写程序代码时，显示可能的 [函数名称](https://www.metatrader5.com/zh/metaeditor/help/development/intelligent_management#substitute) 列表以供替换。 名称的变体由输入的第一个字符决定。 |
| ![参数信息](https://www.metatrader5.com/i/help/metaeditor/en/parameter_info_icon.png) | 参数信息 | 显示当前函数的 [签名](https://www.metatrader5.com/zh/metaeditor/help/development/intelligent_management#info)。 换言之，它显示函数的参数组顺序和类型，并高亮显示当前编辑的参数。 |
| ![跳转到定义](https://www.metatrader5.com/i/help/metaeditor/en/go_to_definition_icon.png) | 跳转到定义 | [跳转到](https://www.metatrader5.com/zh/metaeditor/help/development/intelligent_management#definition) 一条声明或所选函数的定义，或变量。 |
| ![函数列表](https://www.metatrader5.com/i/help/metaeditor/en/list_funtions_icon.png) | 函数列表 | 打开当前程序代码中声明的 [所有函数列表](https://www.metatrader5.com/zh/metaeditor/help/development/intelligent_management#list)。 |

## In this section

- [文件](https://www.metatrader5.com/zh/metaeditor/help/main_menu/main_menu_file)
- 编辑
- [搜索](https://www.metatrader5.com/zh/metaeditor/help/main_menu/main_menu_search)
- [视图](https://www.metatrader5.com/zh/metaeditor/help/main_menu/main_menu_view)
- [调试](https://www.metatrader5.com/zh/metaeditor/help/main_menu/main_menu_debug)
- [构建](https://www.metatrader5.com/zh/metaeditor/help/main_menu/main_menu_build)
- [工具](https://www.metatrader5.com/zh/metaeditor/help/main_menu/main_menu_tools)
- [窗口](https://www.metatrader5.com/zh/metaeditor/help/main_menu/main_menu_window)
- [帮助](https://www.metatrader5.com/zh/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/zh/metaeditor/help", "name": "MetaEditor 帮助"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "https://www.metatrader5.com/zh/metaeditor/help/main_menu", "name": "主菜单"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "https://www.metatrader5.com/zh/metaeditor/help/main_menu/main_menu_edit", "name": "编辑"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: 编辑", "acceptedAnswer": { "@type": "Answer", "text": "该菜单包含操控程序源代码的命令..." } }] }
```
