6.2.2.5   Paste

Synopsis:
Insert text into the currently selected procedure at the IC.
Shortcut:
Ctrl+V or Shift+Ins

You can insert code lines from previous Cut or Copy operations or text placed in the system clipboard into the current procedure. The text is inserted at the text cursor position.

If the paste buffer contains local procedures that do not exist, they are copied depending on the preferences (see section “General Options ▹ General Options” on page 174). By default, HDevelop will ask whether the corresponding local procedures shall be added. If, however, the paste buffer contains local procedures that do already exist, no further copies of such procedures are added. This is the case when the same content of the clipboard is pasted repeatedly.

If the paste buffer contains calls to external procedures, the paths to those procedures are copied, too. However, before an external procedure path is added during a paste action, you are asked whether or not you want to add that particular path to the external procedure paths.

The mechanism of copying and pasting procedure calls together with the corresponding procedures is an easy way to transfer procedures between different HDevelop programs. It also works between multiple instances of HDevelop. The contents of the internal buffer are kept, allowing this command to be repeated.