28

It doesn't look to me like there's any menu option which enables whitespace to be viewed in the text editor.

There's a similar question here, however this is referring to SSMS Express 2005 . An answer to this question shows how whitespace viewing can be enabled by editing registry values. However, i don't have that path specified in my registry. (I've checked each dir in the SQL Server registry and can't find a 'Visible Whitespace' entry)

I am using SQL Server Management Studio 2016 (v 13.0.15500.91)

Surely there must be a way to achieve this. It's not really required but I would like my settings to match my other versions of SSMS.

Community
  • 1
  • 1
DNKROZ
  • 2,634
  • 4
  • 25
  • 43

2 Answers2

54

The option is under: Edit > Advanced > View White Space

Daniel L. VanDenBosch
  • 2,350
  • 4
  • 35
  • 60
DNKROZ
  • 2,634
  • 4
  • 25
  • 43
  • It seems like there's no way to add this option to a Toolbar... I can't find it anywhere in the list of commands you can custom-add. – Wouter Jun 13 '18 at 08:01
  • @Wouter - It's now in newer versions of SSMS. I have it in SSMS 18 (v15.0.18410.0); David Bippes' answer below details how to set it. – Myles Jun 07 '22 at 12:42
5

You can also add this to a toolbar:

  • In the Customize Toolbar window, click "Add Command"
  • Click "Edit" in the Categories list
  • Choose "Toggle Visual Space" in the Commands list
  • Click "OK"
  • Move the button where you want it, then click "Close"
David Bippes
  • 65
  • 2
  • 4