Pasting Text

Use the Edit menu Paste command from any editor window to paste a selected portion of a method from the clipboard into the current method. This command is disabled when there is no selected portion of a method in the clipboard.

You can paste a portion of a method to the same or a different method, or a complete method to a different method.

Before you can paste a portion or a complete method to the same or a different method, you must first have copied or cut the required code to the clipboard. (For details, see "Copying Text" or "Cutting Text", earlier in this section.)

To paste of a method or full method from the clipboard

  1. Position the caret in the current method at the position in which the paste operation is to begin. If you are pasting a complete method into a newly defined method, you will first have to create the new JADE method, by using the New Jade Method command from the Methods menu.

  2. Paste the code from the clipboard, by performing one of the following actions.

    • Select the Paste command from the Edit menu

    • Press Ctrl+V

    • Click the Paste icon in the Browser toolbar

    The code from the clipboard is then pasted into the current method, with the first part of the code located at the caret position.

  3. If you have pasted a complete method into an "empty" method, now modify the method signature, and remove the vars, begin, and end statements.

When you use the Paste command, the code is copied from the clipboard. If you cut any code from a method (by using the Edit menu Cut command), any subsequent paste operations will use the text from that cut action.

The clipboard is not saved between JADE sessions.