Sigasi logo

Table Of Contents

Previous topic

User Interface

Next topic

Linting and quickfixes

Support

VHDL editor

In addition to the powerful features of an Eclipse editor, the VHDL editor that comes with Sigasi HDT supports a number of advanced editing features which are specifically useful for VHDL editing. These are described in this chapter.

Block selection

Block selection is an alternative for standard (paragraph) selection. Block selection mode differs from standard selection mode in that it allows to select rectangular regions, or to set the cursor over multiple lines. Block selection is ideal for selecting vertical regions, for example a column of a table or all port names in a port map.

To toggle between normal and block selection modes use Alt+Shift+A or Edit ‣ Toggle Block Selection

Align

You can align the current selection with Edit ‣ Align. Aligning is done by looking at a common delimiter string in consective lines. The supported delimiter strings are: <=  ,  :=  =>  :

Blank lines and comment lines are ignored. Both tabs and spaces are supported.

Move lines

You can easily move lines up and down by pressing Alt+Up and Alt+Down.

Indent

You can easily clean up the indentation and remove trailing whitespaces in the current selection, by pressing Ctrl+I.

Fix Case

VHDL is case insensitive. However, for clarity’s sake it is best to keep the case of identifiers and keywords consistent throughout the project.

By right-clicking in the editor window, you can access the Fix Case refactoring. This action cleans up the case of the keywords and indentifiers in your file as follows:

  • keywords are in lowercase
  • enumeration literals are in uppercase
  • constants are in uppercase
  • the case of other objects is fixed according to their declaration

Stuttering

Stuttering is an editing technique popularized by Emacs, that lets you type certain things really fast. Stuttering means that you tap a certain key twice and it expands to something more complex. For example, press the period key (.) twice, and the editor will expand it to a right arrow (=>). Stuttering works like double clicking: if you type keys slowly, the stuttering mechanism will not be triggered.

The following stuttering keys are available:

Keys Effect
,, <=
.. =>
:: :=

Stuttering can be disabled or enabled in Window ‣ Preferences‣Sigasi (VHDL)‣Editor‣Enable stuttering.

Copyright © 2008-2011 Sigasi nv - "Sigasi" is a registered trademark of Sigasi nv