MetaEditor HelpWorkspaceHot 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 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 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 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 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 or warning detected in the code during compilation.

Shift+F8

Go to the previous error or warning detected in the code during compilation.

Alt+G

Go to a declaration or definition of a selected function or variable.

Alt+M

Open the list of all functions 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 symbols to a specified position.

Ctrl+.

Insert a workpiece for a function comment to a specified position.

Ctrl+,

Launch Styler for arranging the code of the currently edited file.

Ctrl+0-9

Set a named bookmark.

Alt+0-9

Go to a named bookmark.

Ctrl+- or

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

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

Hot keys

Description

F5

Start debugging 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.

Ctrl+O

Open a file.

Ctrl+S

Save changes in the current edited file.

Ctrl+F4

Close the currently edited file.

F7

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.

Ctrl+D

Show/hide the Navigator window.

Ctrl+T

Show/hide the Toolbox window.

F4

Switch to the trading platform.

F1

Open MetaEditor Reference.

Ctrl+F1

Search within MQL4.community/MQL5.community website.

F12

Enable/disable the full screen mode.

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 window hot keys

Hot keys

Description

Enter

Go to a line, detected error or element of search by files, view a selected article or MQL4/MQL5 program.

Ctrl+C

Copy an error line to clipboard.

F2

Edit a name of an observed expression in the Debug tab of the observation section.

Insert

Add a new expression in the Debug tab of the observation section.

Delete

Delete a selected expression in the Debug tab of the observation section.

D

Download a selected MQL4/MQL5 program from the library.

R

Show/hide article categories.

G

Show/hide the grid separating fields.

A

Enable/disable column size auto selection.

S

Enable/disable auto scroll of messages in the Errors tab.