Code fragment window
A code fragment window holds a copy of some code lines and where they came from. Use it to keep a piece of code in view while you navigate elsewhere, to write notes about it, or to share it with a colleague. Its title names the procedure or trigger the code comes from.
Opening it
In the Object view:
- Mark code lines, right-click the start or end marker and select Copy Code to New Window. See Select and copy code.
- Right-click the Code header of a procedure or trigger and select Copy Code to New Window to copy all its code. See Code section context menu.
Each command opens a new window, so you can keep several fragments open.

| # | Name | Description |
|---|---|---|
| 1 | Declaration | The procedure or trigger the code comes from. Select it to go to it. Before it, the object's id and name go to the object. |
| 2 | Code lines | The copied lines, with the tooltips and links of the Object view. |
| 3 | Line link | Select it to go to the exact place of this line in the object. |
| 4 | Notes | Your notes about the code. See Share a piece of code. |
| 5 | Copy source to clipboard | Copies the fragment, with your notes, as plain text. See What the copy holds. |
Share a piece of code
- Open the code in a code fragment window.
- Type your explanation in Notes.
- Select Copy source to clipboard.
- Paste into the email or ticket.
The reader gets the code, your notes and where to find the code.
What the copy holds
The copy holds, in this order:
- Source code fragment context:
Path(the workspace),Object(type, id, name and module) andDeclaration. - Notes, when you wrote any.
- Source code fragment text: the code.
The window does not save the notes: they are gone when you close it.