Apart from standard cut, copy, and paste operations, you can copy file paths, symbol references, and so on. When pasting, you can optionally choose items from clipboard history and automatically apply formatting rules.
tip
You can also cut, copy, and paste several ranges of text in different places with multiple carets.
Cut line or selection
Set the caret anywhere in the line to cut the whole line, or make a selection to cut.
Do one of the following:
From the main menu, choose Edit | Cut.
Press Ctrl+X.
Click Cut on the toolbar.
Right-click the selection and choose Cut from the context menu.
tip
There are a lot of ways to select text in the editor before copying or cutting. For example, you can press Ctrl+W to elect the word at the caret and then extend the selection to containing logical blocks of code.
Copy line or selection
Set the caret anywhere in the line to copy the whole line, or make a selection to copy.
Do one of the following:
From the main menu, choose Edit | Copy.
Press Ctrl+C.
Click Copy on the toolbar.
Right-click the selection and choose Copy from the context menu.
tip
You can disable copying or cutting the current line when there is no selection on the Advanced Settings page of the IDE settings Ctrl+Alt+S.
When cutting and copying text from the editor, by default MPS puts it as rich text to the clipboard, keeping the highlighting colors and font. But you can also copy it as plain text.
Copy selection as plain text
If you want to always copy editor selection as plain text, choose the corresponding option under Rich-Text Copy on the Editor | Code Editing page of the IDE settings Ctrl+Alt+S.
If you want to have rich-text copy by default, you can make a single plain-text copy by right-clicking the selection and choosing Copy as Plain Text from the context menu.
tip
If you want to make a copy of a line or selection, press Ctrl+D to duplicate it instead of copying and then pasting.
Paste the last clipboard entry
Set the caret to the place where you want to paste the last clipboard entry or select a code block that you want to replace with the clipboard entry.
Do one of the following:
From the main menu, choose Edit | Paste.
Press Ctrl+V.
Click Paste on the toolbar.
Alternatively to pasting with the selected formatting preference, you can insert the clipboard entry with its original formatting.
Paste the last clipboard entry with original formatting
Set the caret to the place where you want to paste the last clipboard entry or select a code block that you want to replace with the clipboard entry.
Do one of the following:
From the main menu, choose Edit | Paste Simple.
Press Ctrl+Alt+Shift+V.
You can also access your clipboard history and quickly paste any of the recent items copied to the clipboard. MPS starts recording copied items to its clipboard history as soon as you start it and clears the history when you close it.
Paste specific entry from the clipboard history
Set the caret to the place where you want to paste the last clipboard entry or select a code block that you want to replace with the clipboard entry.
Press Ctrl+Shift+V or choose Edit | Paste | Paste from History from the main menu.
In the Choose Content to Paste dialog, you can choose one of the recent clipboard entries and preview it.
Click Paste or Pate without formatting to paste the desired entry in a corresponding way. Alternatively, press a mnemonic key displayed next to the desired entry to quickly insert it.