Indentation - SQL Assistant

Teradata SQL Assistant for Microsoft Windows User Guide

Product
SQL Assistant
Release Number
15.10
Language
English (United States)
Last Update
2018-10-07
dita:id
B035-2430
lifecycle
previous
Product Category
Teradata Tools and Utilities

Indentation

When you press the Enter key, the new line might automatically indent to the same level as the line above. This is controlled by the Indent new lines like previous option on the Code Editor tab of the Options screen.

If you highlight one or more lines in the query and press the Tab key, those lines are indented one level. If you press Shift+Tab, the highlighted lines are unindented by one level.

This indentation of lines only applies if the selected text includes a line feed character. For example, you must either select at least part of two lines or if selecting only one line, the cursor must be at the beginning of the next line.

Note: This is always the case when you use the margin to select a line.

If no line end is included in the selected text, or no text is selected, a tab character is simply inserted.

If you wish to indent or un-indent a line without selecting it press Ctrl+I or Shift+Ctrl+I respectively.