Development Environment    

Copying Statements from the Command History Window

Select an entry, or Shift+click or Ctrl+click to select multiple entries, or use Ctrl+A to select all entries. Then you can do any of the following.

Action
How to Perform the Action 
Run the statements in the Command Window
Copy the selection to the clipboard by right-clicking and selecting Copy from the context menu. Paste the selection into the Command Window. In the Command Window, edit the statement(s) if desired, and press Enter or Return to execute the statement(s).
Alternatively, drag the selection to the Command Window, edit the statements if desired, and press Enter or Return to execute the statements. For this method, the Command History preference Allow Drag and Drop editing must be selected and both tools must be in the desktop.
Copy the statement(s) to another window
Copy the selection to the clipboard by right-clicking and selecting Copy from the context menu. Paste the selection into an open M-file in the Editor or any application.
Create an M-file from the statement(s)
Right-click the selection and select Create M-File from the context menu. The Editor opens a new M-file that contains the statement(s) you selected from the Command History window. Also, you can drag selected statements from the Command History to an open file in the Editor if both tools are in the desktop.


  Running Statements from the Command History Window Searching in the Command History