---
title: "Hot keys - Workspace - MetaEditor Help"
description: "Hot keys (key shortcuts) are keys and their combinations, which allow you to quickly execute commands without having to use... - Hot keys - Workspace - MetaEditor Help"
image: "https://www.metatrader5.com/i/logo_metatrader5.png"
url: "https://www.metatrader5.com/en/metaeditor/help/workspace/hotkeys"
---

[MetaEditor Help](https://www.metatrader5.com/en/metaeditor/help) → [Workspace](https://www.metatrader5.com/en/metaeditor/help/workspace) → Hot keys

# Hot keys

Hot keys (key shortcuts) are keys and their combinations, which allow you to quickly execute commands without having to use menus and control panels. Keyboard shortcuts perform different functions depending on which window of the MetaEditor interface is currently active. Some shortcuts perform certain functions, regardless of focus.

## Keyboard shortcuts in the [code editing](https://www.metatrader5.com/en/metaeditor/help/workspace/source_code_windows) window

| Hot keys | Description |
| --- | --- |
| Ctrl+Z | Undo the last action. |
| Ctrl+Y | Redo the last undone action. |
| Ctrl+X | Cut a selected fragment to paste it later. |
| Ctrl+C | Copy a selected fragment to clipboard. |
| Ctrl+V | Paste a cut or copied fragment in the current cursor position. |
| Delete | Delete the selected fragment. |
| Ctrl+A | Select all text of an edited file. |
| Ctrl+F | Call the search window. |
| F3 | Find the next item for the current search query. |
| Shift+F3 | Find the previous item for the current search query. |
| Ctrl+H | Call the search and replace window. |
| Ctrl+F2 | Enable/disable a [bookmark](https://www.metatrader5.com/en/metaeditor/help/development/intelligent_management#bookmarks) on a selected line regardless of its current state. |
| F2 | Go to next bookmark. |
| Shift+F2 | Go to previous bookmark. |
| Ctrl+Shift+F2 | Remove all bookmarks from the current file. |
| Ctrl+Space | [Call the list](https://www.metatrader5.com/en/metaeditor/help/development/intelligent_management#substitute) of possible options of function names for substitution when writing a program code. The variants of names are determined by the first characters typed. |
| Ctrl+Shift+Space | [Show the signature](https://www.metatrader5.com/en/metaeditor/help/development/intelligent_management#info) of the current function: order and types of parameters set in the function, as well as highlighting the current edited parameter. |
| F8 | Go to the next [error](https://www.metatrader5.com/en/metaeditor/help/workspace/toolbox#errors) or warning detected in the code during [compilation](https://www.metatrader5.com/en/metaeditor/help/development/compile). |
| Shift+F8 | Go to the previous [error](https://www.metatrader5.com/en/metaeditor/help/workspace/toolbox#errors) or warning detected in the code during [compilation](https://www.metatrader5.com/en/metaeditor/help/development/compile). |
| Alt+G | [Go to](https://www.metatrader5.com/en/metaeditor/help/development/intelligent_management#definition) a declaration or definition of a selected function or variable. |
| Alt+M | Open the [list of all functions](https://www.metatrader5.com/en/metaeditor/help/development/intelligent_management#list) declared in the current program code. |
| Ctrl+' | Insert "//" comments at the beginning of each selected line. |
| Ctrl+; | Remove "//" comments from the beginning of each selected line. |
| Ctrl+/ | Insert single-line [comment](https://www.metatrader5.com/en/metaeditor/help/development/intelligent_management#comments) symbols to a specified position. |
| Ctrl+. | Insert a workpiece for a function [comment](https://www.metatrader5.com/en/metaeditor/help/development/intelligent_management#comments) to a specified position. |
| Ctrl+, | Launch [Styler](https://www.metatrader5.com/en/metaeditor/help/development/styler) for arranging the code of the currently edited file. |
| Ctrl+0-9 | Set a named [bookmark](https://www.metatrader5.com/en/metaeditor/help/development/intelligent_management#bookmarks). |
| Alt+0-9 | Go to a named bookmark. |
| Ctrl+- or<br><br>Alt+Left Arrow | Go to the previous line the cursor was placed on. This is possible only within the currently opened files. |
| Ctrl+Shift+- or<br><br>Alt+Right Arrow | Return from the previous line to the next one. This is possible only within the currently opened files. |
| Tab | Insert three spaces (tab symbol) at the beginning of the selected lines. |
| Tab+Shift | Remove three spaces (tab symbol) at the beginning of the selected lines. |
| Ctrl+Shift+U | Change characters of a selected phrase to uppercase. |
| Ctrl+U | Change characters of a selected phrase to lowercase. |
| Ctrl+Tab | Switch to a previous open code editing window. |
| Ctrl+Shift+Tab | Switch to a next open code editing window. |

## Hot keys for [debugging](https://www.metatrader5.com/en/metaeditor/help/development/debug)

| Hot keys | Description |
| --- | --- |
| F5 | Start [debugging](https://www.metatrader5.com/en/metaeditor/help/development/debug) the currently selected program. |
| Break | Pause debugging. |
| Shift+F5 | Stop debugging. |
| F11 | Step Into: move one step of program execution accessing the called functions. |
| F10 | Step Over: move one step of program execution without accessing the called functions. |
| Shift+F11 | Step Out: execute a single step of a program one level higher by the call stack. |
| F9 | Enable/disable a breakpoint on the current line depending on its current status. |
| Shift+F9 | Add an expression highlighted in the program code to observation. |

## General MetaEditor commands

| Hot keys | Description |
| --- | --- |
| Ctrl+N | Open [MQL4/MQL5 Wizard](https://www.metatrader5.com/en/metaeditor/help/mql5_wizard). |
| Ctrl+O | Open a file. |
| Ctrl+S | Save changes in the current edited file. |
| Ctrl+F4 | Close the currently edited file. |
| F7 | [Compile](https://www.metatrader5.com/en/metaeditor/help/development/compile) the currently edited file. |
| Ctrl+F7 | Compile all files currently opened for editing. |
| Ctrl+Break | Cancel compilation. |
| Ctrl+P | Open the current file print window. |
| Ctrl+Shift+F | Open the window for [searching in files](https://www.metatrader5.com/en/metaeditor/help/development/source_code_find#find_in_files). |
| Ctrl+D | Show/hide the [Navigator](https://www.metatrader5.com/en/metaeditor/help/workspace/navigator) window. |
| Ctrl+T | Show/hide the [Toolbox](https://www.metatrader5.com/en/metaeditor/help/workspace/toolbox) window. |
| F4 | Switch to the trading platform. |
| F1 | Open MetaEditor Reference. |
| Ctrl+F1 | [Search](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_help) within [MQL4.community](https://www.mql4.com/)/[MQL5.community](https://www.mql5.com/) website. |
| F12 | Enable/disable the full screen mode. |

## [Navigator](https://www.metatrader5.com/en/metaeditor/help/workspace/navigator) window hot keys

| Hot keys | Description |
| --- | --- |
| Enter | Open a selected file. |
| Insert | Create a folder in the currently selected one. |
| F2 | Rename a selected file or folder. |
| Delete | Delete a selected file or folder. |
| F5 | Update the Navigator window. |

## [Toolbox](https://www.metatrader5.com/en/metaeditor/help/workspace/toolbox) window hot keys

| Hot keys | Description |
| --- | --- |
| Enter | Go to a line, detected [error](https://www.metatrader5.com/en/metaeditor/help/workspace/toolbox#errors) or element of [search by files](https://www.metatrader5.com/en/metaeditor/help/development/source_code_find#find_in_files), view a selected [article](https://www.metatrader5.com/en/metaeditor/help/workspace/toolbox#articles) or [MQL4/MQL5 program](https://www.metatrader5.com/en/metaeditor/help/workspace/toolbox#codebase). |
| Ctrl+C | Copy an error line to clipboard. |
| F2 | Edit a name of an observed expression in the [Debug](https://www.metatrader5.com/en/metaeditor/help/development/debug#watch) tab of the observation section. |
| Insert | Add a new expression in the [Debug](https://www.metatrader5.com/en/metaeditor/help/development/debug#watch) tab of the observation section. |
| Delete | Delete a selected expression in the [Debug](https://www.metatrader5.com/en/metaeditor/help/development/debug#watch) tab of the observation section. |
| D | Download a selected MQL4/MQL5 program from the [library](https://www.metatrader5.com/en/metaeditor/help/workspace/toolbox#codebase). |
| R | Show/hide [article categories](https://www.metatrader5.com/en/metaeditor/help/workspace/toolbox#articles). |
| G | Show/hide the grid separating fields. |
| A | Enable/disable column size auto selection. |
| S | Enable/disable auto scroll of messages in the [Errors](https://www.metatrader5.com/en/metaeditor/help/workspace/toolbox#errors) tab. |

## In this section

- [Navigator](https://www.metatrader5.com/en/metaeditor/help/workspace/navigator)
- [Toolbox](https://www.metatrader5.com/en/metaeditor/help/workspace/toolbox)
- [Status Bar](https://www.metatrader5.com/en/metaeditor/help/workspace/status_bar)
- [Working with windows](https://www.metatrader5.com/en/metaeditor/help/workspace/source_code_windows)
- Hot keys

```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/workspace", "name": "Workspace"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help/workspace/hotkeys", "name": "Hot keys"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: Hot keys", "acceptedAnswer": { "@type": "Answer", "text": "Hot keys (key shortcuts) are keys and their combinations, which allow you to quickly execute commands without having to use menus and control..." } }] }
```
