MPS Help

Note : JetBrains MPS is currently under development and documentation is not completely ready now.
You can find all currently available information, articles and documentation at JetBrains MPS Home
(http://www.jetbrains.com/mps)

Editor Actions

Ctrl-Enter Inserts the new node at selected position or after it if insertion at current position is not possible.
Holding Ctrl and pressing Enter more than once inserts node to the upper levels of the tree.
Auto-completes selected node before insertion of new node.
Insert Inserts the new node at selected position or before it if insertion at current position is not possible.
Auto-completes selected node before insertion of new node.
Ctrl-Space Auto-completes selected node from the caret position.
Enter Auto-completes selected node from the caret position and moves selection to the next cell.
Alt-Enter Replaces selected node. Opens chooser with complete list of available options
Space at the end of node Auto-completes selected node from the caret position. If right transform is specified in actions for this node, creates a yellow cell to type inside it (so called right-transform hint). Moves selections to the right.
Ctrl-Delete Deletes the selected node, reference to a node or property depending on context.
Delete Deletes char of text or does same as command above.
Ctrl-Up, Ctrl-W Selects the parent of selected node.
Ctrl-Down, Ctrl-Shift-W Selects the child of selected node
Ctrl-Left Moves caret to the leftmost position of the cell text.
Ctrl-Right Moves caret to the rightmost position of the cell text.
Home Moves caret to the leftmost position of the cell text. If caret is already there, selects the first cell in the current line.
End Moves caret to the rightmost position of the cell text. If caret is already there, selects the last cell in the current line.
Tab Selects the next node.
Ctrl-Shift-arrow Selects range of adjacent nodes. Only DELETE ang COPY/PASTE commands are available when multiple nodes are selected.
Ctrl-Z Undo last change.
Ctrl-Shift-Z Redo.
Ctrl-C Copies selected text, if any text is selected, otherwise copies selected node.
Ctrl-V Pastes a node at the position defined by current context, if some node exists in clipboard, otherwise paste text at the caret position.
Ctrl-Alt-V Paste a node at the position after the selected node.
Ctrl-Shift-V Pastes a node at the position before the selected node.
Ctrl-P Go to project
Ctrl-E Shows a list of recently opened editors
Ctrl-B Go by first reference
Ctrl-Shift-S Go to node definition
Ctrl-Alt-Shift-E Go to node editor definition
Ctrl-Shift-E Go to concept editor definition (enabled when within concept declaration)
With Ctrl-Alt-Left and Ctrl-Alt-Right You can go back and forth along the navigated cells. It includes items reached using all navigation commands except for the simplest such as arrow keys, Home, End, etc. Press Ctrl-Alt-Left or Ctrl-Alt-Right. You will be navigated to the previous or next navigated cell. If the file with this cell is closed, it will be opened in a new tab.
Alt-F7 Find usages
Esc return to previous focus owner (usages pane or project pane or inspector)
Ctrl-Shift-P Surround with parenthesis

Import Actions

Ctrl-I Add model import
Ctrl-L Add language import

Project Pane Keys

F4 Open in editor pane
Enter Open in editor pane (same as F4)
Double-Click Open in editor pane (Same as F4)