Tabs, T-SQL, Text Editor, Options Dialog Box

Allows you to change the T-SQL tab settings for the Code/Text Editor. You can access the Options dialog box from the Tools menu.

Indenting

None

When selected, no automatic indenting occurs when you press ENTER to move to a new line of text and the cursor is placed at the first column of the next line.

Block

When selected and you press ENTER, the new line of text is automatically indented to the same tab stop as the line preceding it.

Tabs

Tab size

Specifies the number of spaces represented by a TAB character.

Indent size

Specifies the number of spaces to be inserted by an indent operation which occurs when the TAB key is pressed. The space inserted may be a combination of tab characters and/or space characters.

Insert spaces

When selected, indent operations insert space characters rather than TAB characters. If indent size is set to 5, for example, then five spaces are inserted in the current line of text if you press the TAB key or the Indent button.

Keep tabs

When selected, indent operations insert TAB characters rather than spaces when possible. The TAB character fills the number of spaces specified in Tab size. If the indent size is not an even multiple of the TAB size, space characters are inserted to fill the remaining space.