Background
When writing code, one gets to decide whether Tabs are kept as is; or have the editor automatically converts tabs to spaces.
SQL Server Management Studio ( SSMS )
Let us review SSMS Toolings as it relates to tabs and spaces.
Outline
- Editor
- Editing
- Choose Tabs or Spaces
- Selected Text
- Convert “Tabs to Spaces” and “Spaces to Tabs“
- View White Space
- Editing
Editor
Editing
Choose Tabs or Spaces
Outline
- Access Menu
- Choose Menu Items
- Tools \ Options \ Text Editor \ Transact-SQL \ Tabs
- Please Choose
- Tab
- Tab Size
- We kept as 4
- Indent Size
- We kept as 4
- Tab Size
- Insert Spaces or Keep Tabs
- Tab
Images
Selected Text
Tabify Or Untabify Text
Outline
- From the editor, select Text and keep selected
- Access Menu
- Choose Menu Items
- Edit \ Advanced
- Tabify Selected Lines
- Untabify Selected Lines
- Edit \ Advanced
Images
View White Space
Outline
- From the editor, select Text and keep selected
- Access Menu
- Choose Menu Items
- Edit \ Advanced
- Toggle “View White Space”
- Edit \ Advanced
Images
Image – View White Space – No
Image – View White Space – Yes