Basic Editing

Selecting text:

Text can be selected in the HDL window using the left mouse button. Simply place the cursor at the beginning of the text to be selected, press and hold the left mouse button and drag the cursor to the end of the text to be selected and release the mouse button. The selected text will be highlighted.

To easily select all the text in the HDL window, use the Edit menu (Edit->Select All) or Ctrl+A on the keyboard.

 

Rectangular selections:

Rectangular areas of code can also be selected. To select a rectangular area, place the cursor at the beginning of the text to be selected, press and hold both the Alt key and the left mouse button and drag the cursor to the end of the rectangular block to be selected.

 

Copy/Cut/Paste:

The HDL Editor provides several ways to copy, cut and paste selected text.

Selected text can be copied using the Edit menu (Edit->Copy), the Copy icon on the Edit toolbar, the edit popup menu (right mouse button->Copy), or Ctrl+C on the keyboard.

Selected text can be cut using the Edit menu (Edit->Cut), the Cut icon on the Edit toolbar, the edit popup menu (right mouse button->Cut) or Ctrl+X on the keyboard.

Cut or copied text can be pasted back into the HDL window (or another HDL window) using the Edit menu (Edit->Paste), the Paste icon on the Edit toolbar, the edit popup menu (right mouse button->Paste) or Ctrl+V on the keyboard.

Undo/Redo:

The HDL editor provides unlimited Undo/Redo capabilites. There are several ways within the HDL editor to undo and redo text editing operations.

To undo an editing operation, use the Edit menu (Edit->Undo), the Undo icon on the Edit toolbar, the edit popup menu (right mouse button->Undo), or Ctrl+Z on the keyboard.

To redo an editing operation, use the Edit menu (Edit->Redo), the Redo icon on the Edit toolbar, the edit popup menu (right mouse button->Redo), or Ctrl+Shift+Z on the keyboard.

 

Find/Replace:

The HDL editor provides controls to find and optionally replace text within the HDL code.

To find text, use the Edit menu (Edit->Find...), the Find icon on the Edit toolbar, or Ctrl+F on the keyboard. The Find Dialog will appear:

String to Find: Enter the text to find in the HDL window

Regular Expression: Select this control if the String to Find is specified as a Regular Expression.

Case Sensitive: Select this control to performa a case-sensitive search.

Whole Word: Select this control if the String to Find is specified as a whole word, i.e. surrounded by non-word characters.

Search Backwards: Select this control to search from the cursor position to the beginning of the file.

 

To find then replace text, use the Edit menu (Edit->Find/Replace...), the Find/Replace icon on the Edit toolbar, or Ctrl+R on the keyboard. The Find/Replace dialog will appear:

String to Find: Enter the text to find in the HDL window

Replace with: Enter the text to be inserted in place of String to Find.

Regular Expression: Select this control if the String to Find is specified as a Regular Expression.

Case Sensitive: Select this control to performa a case-sensitive search.

Whole Word: Select this control if the String to Find is specified as a whole word, i.e. surrounded by non-word characters.

Search Backwards: Select this control to search from the cursor position to the beginning of the file.

Window/In Selection: Select if replacement is to occur only in selected text or throughout the entire HDL window.