MetaEditor Help

Managing Windows

Managing Windows

Windows of program files edited are located at the working area of the MetaEditor. On default they are shown as different tabs named in compliance with file names.

Tabs

In order to switch to working with one of the files you should choose the corresponding tab using the mouse. The context menu of the tabs allows to execute the following commands:

Context Menu

Commands

Context Menu of the Tabs

  • New Window New Window — open a copy of the current tab in a new one. At that the corresponding number of the copy will be added to the tab title;
  • Compile Compilecompile the current code of the program;
  • Compile Open Files Compile Open Files — compile all files opened for editing at the moment;
  • Save Save — save changes in the current window. The same action can be performed by pressing the "Ctrl+S" key combination or the middle mouse button at a tab name;
  • Close — close the selected tab. The same action can be performed by pressing the "Ctrl+F4" key combination;
  • Close All But This — close all the tabs except the current one;
  • Copy Full Path — copy the full path to the edited file of MQL4/MQL5 program to the clipboard;
  • Open Containing Folder — open the folder that contains the current file.

Positions of the file windows can be changed using the commands of the "Window" or the "Standard" toolbar. A tab can also be minimized to a window by a double-click on its title. In order to maximize the tab you should double-click with the mouse on its title again.

The commands of the "Edit" menu and the "Standard" toolbar are repeated in the context menu of the window for working with source code:

Context Menu

Commands

Text Context Menu

  • Undo Undo — undo the last operation. The same action can be performed by pressing the "Ctrl+Z" key combination;
  • Redo Redo — redo the last operation undone. The same action can be performed by pressing the "Ctrl+Y" key combination;
  • Cut Cut — cut the selected fragment of the source code to paste it further into another place. The same action can be performed by pressing the "Ctrl+X" key combination;
  • Copy Copy — copy the selected fragment of the source code to a clipboard. The same action can be performed by pressing the "Ctrl+C" key combination;
  • Paste Paste — paste the copied or cut fragment of a source code into a selected place. The same action can be performed by pressing the "Ctrl+V" key combination;
  • Delete Delete — delete the selected fragment of a source code. The same action can be performed by pressing the "Delete" key;
  • Toggle Bookmark Toggle Bookmark — toggle or untoggle a bookmark on the current line of the edited file depending on its current state. The same action can be performed using the "Ctrl+F2" key combination;
  • Toggle Breakpoint Toggle Breakpoint — toggle or untoggle the breakpoint on the current line of the edited file depending on its current state. The same action can be performed by pressing the "F9" key;
  • Add Watch Add Watch — add the selected expression to the watched ones. This command is only active in the debugging mode. The "Shift+F9" key combination allows to perform the same action;
  • MQL5 Storage — open the submenu containing commands for working with the storage of source code MQL5 Storage;
  • Go To Definition Go To Definitiongo to the declaration or definition of the currently selected function or variable. The same action can be performed by pressing the "Alt+G" key combination.

Selected text fragments can be moved to different positions in the source code using the "Drag'n'Drop" technology.