You can easily change the indentation of an entire block of text or just new lines. This is especially useful when editing structured programming languages such as C and Pascal. VEDIT both follows the common Windows conventions for indenting and un-indenting blocks, and has additional functions for indenting blocks and lines.

Indent a Complete Block of Text

By Windows conventions, when an entire line or more is highlighted, you can indent all lines in the block by pressing Tab , and un-indent all lines by pressing Shift-Tab or Backspace.

With vEdit, Change the Indentation of an Entire Block of Text

  1. Highlight the lines that need re-indenting, make sure the cursor is within the highlighted block or immediately after it.
  2. Press Tab to indent the block further. Press Shift-Tab or Backspace to indent it less (to un-indent it).

Alternatively

  1. Highlight the lines that need re-indenting, make sure the cursor is within the highlighted block or immediately after it.
  2. Press F8 to indent the block further / Press F7 to un-indent the block.
F8
F8 is the hot-key for EDIT > Formatting > Indent.
F7
F7 is the hot-key for EDIT > Formatting > Undent.

Assuming “Persistent blocks” are enabled, you must explicitly clear the block highlighting. There are many ways to do this:

Double-tap the Ctrl key, press Ctrl-\, right-click and select Clear markers, or select BLOCK > Clear markers ( Shift-F9) to clear the block highlighting.

Indenting/undenting with Tab and Shift-Tab assumes the “Normal” keyboard layout and that CONFIG > Emulation > [TAB CHARACTER] emulation mode is set to “2” or “3”. The default is “3”.

The amount of each indent/undent is typically 4 columns. It can be changed with CONFIG > Programming > indent increment.

The indentation is created by inserting spaces and, optionally, Tab characters. The optimum number of tabs and spaces will be used and depends upon the currently set tab stops. To create the indentation with only spaces, disable CONFIG > Tab/Fill > Expand Tab key with spaces.

Indenting New Lines