Cutting, Copying and Pasting
MPS provides a number of handy Clipboard operations. You can copy, cut, and paste selected text, a path to a file, or a reference to a symbol or a line of code.
Because MPS uses the system Clipboard, you can copy and paste between applications. So doing, when pasting Clipboard entries, MPS removes any formatting from the text and any special symbols from the String
values.
The Paste command smartly understands what is being inserted. If you paste a reference to a symbol, it is analyzed for possible imports, references, etc. So doing, MPS provides the necessary brackets and places the caret at the appropriate insertion point. The Paste Simple command helps paste any Clipboard entry as a plain text, without any analysis.
MPS enables Clipboard stacking, which means that you can store multiple Clipboard entries and access them with a single shortcut. The number of entries that can be kept in the Clipboard stack is customizable on the Editor page of the Settings/Preferences dialog.
Copying a selected fragment of text
Do one of the following:
On the main menu, choose
.Press Ctrl+C.
Click the Copy button on the toolbar.
Copying the path to a file
When you copy the path to a file, the absolute path to a file is copied to the clipboard.
To copy the path to a file, do one of the following:
Open the desired file in the editor, then choose
on the main menu or press Ctrl+Shift+C.Select the desired file in the Project tool window and choose on the context menu of the selection.
Copying the reference to a line or a symbol
Open the desired file in the editor.
Place the caret at a certain line of code.
- Do one of the following:
On the main menu, choose
.On the context menu of the line at caret, choose
.Press Ctrl+Shift+Alt+C.
MPS creates a string in the format that depends on a symbol at caret. For example:
Copy tooltip content
You can copy tooltip text to the clipboard. Hold Alt (on Linux, hold Ctrl+Alt) and click the tooltip.
Cutting a selected fragment of text
Select the desired fragment in the editor.
- Do one of the following:
On the main menu, choose
.Press Ctrl+X.
Click the Cut button on the toolbar.
Pasting the last entry from the clipboard
Place the caret in the location where you want to paste content.
- Do one of the following:
On the main menu, choose
.Press Ctrl+V.
Click the Paste button on the toolbar.
Pasting the last entry from the clipboard as plain text
Do one of the following:
On the main menu, choose
.Press Ctrl+Shift+Alt+V.
Pasting the last entry from the clipboard
Depending on the chosen paste mode, do one of the following:
To apply the Paste Simple mode, place the caret in the location where you want to paste the content and choose on the main menu or press Ctrl+Shift+Alt+V.
To apply the Paste mode, place the caret in the location where you want to paste the content and choose on the main menu, or press Ctrl+V, or click the Paste button on the toolbar.
Pasting a specific entry from the clipboard
On the main menu, choose
or press Ctrl+Shift+V.In the Choose Content to Paste dialog box select the desired entry from the list of recent Clipboard entries.
- Click Paste to paste the content using the Paste mode or hover your mouse over this button to display the available paste mode options. Depending on the chosen paste mode, do one of the following:
Paste: select this option to apply the Paste mode.
Paste Simple: select this option to apply the Paste Simple mode.
The depth of the Clipboard stack is configured in the Limits section on the Editor page of the Settings/Preferences dialog box. When the specified number is exceeded, the oldest entry is removed from the list.