Stutter mode
This feature provides shortcuts to cumbersome syntax elements via multiple presses of certain keys. This optional feature is disabled by default, and can be turned on for Operators, Brackets and Comments as per the following subsections. In order for this to work, you must also set "editor.formatOnType": true
to enable live replacement of text as you type.
Both delimiter and bracket shortcut groups only apply outside of comments.
In order for this to work, you must also set "editor.formatOnType": true
to enable live replacement of text as you type.
VHDL
Delimiter Shortcuts
Enable via TerosHDL config menu >> Editor >> General >> Stutter Delimiter Shortcuts
.
Shortcut | Replacement |
---|---|
'' | " |
;; | : |
;;; | := |
.. | => |
,, | <= |
For all operator replacements (i.e. except "), spaces will be added either side of the replacement if not already present.
Image 1: Delimiter
Bracket Shortcuts
Enable via TerosHDL config menu >> Editor >> General >> Stutter Bracket Shortcuts
. Note: These replacements are compatible with "editor.autoClosingBrackets": true, so long as the corresponding close bracket shortcut is also used as this will overwrite the incorrect suggestion.
Shortcut | Replacement |
---|---|
[ | ( |
[[ | ] |
] | ) |
]] | ] |
Comment Shortcuts
Enable via TerosHDL config menu >> Editor >> General >> Stutter Comment Shortcuts
: true.
Shortcut | Replacement |
---|---|
--- | Line separator, defined by TerosHDL config menu >> Editor >> General >> Stutter Block Width |
---- | Display comment (surrounded by line separators) |
An enter keypress at the end of a line that contains a non-empty comment will continue the comment on the next line. This can be cancelled by pressing enter again.
Image 1: Comment
SV/Verilog
Comment Shortcuts
Enable via TerosHDL config menu >> Editor >> General >> Stutter Comment Shortcuts
: true.
Shortcut | Replacement |
---|---|
--- | Line separator, defined by TerosHDL config menu >> Editor >> General >> Stutter Block Width |
---- | Display comment (surrounded by line separators) |