Visual studio formatting code and sql server

What is the equivalent of Ctrl + K + D (Visual Studio) in Sql Server Management Studio, which is used to format code?

+4
source share
1 answer

The upcoming SQL Server 2011 seems to have a similar feature , but not in previous versions. Click the link that the link links to and you will see that:

  • Applies indentation and white space formatting for the language specified in the Formatting panel in the Text Editor section of the Options dialog box. Available only in a text editor. ( CTRL-K, CTRL-D )
  • Correctly defers selected lines of code based on surrounding lines of code ( CTRL-K, CTRL-F )
+3
source

All Articles