Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code formatting visual studio and sql server

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

like image 997
Rauf Avatar asked Sep 12 '11 08:09

Rauf


1 Answers

Upcoming SQL Server 2011 seems to have a similar feature, but previous versions doesn't have it. Click on the referenced link and you will see that;

  • Applies the indenting and space formatting for the language specified on the Formatting pane of the language in the Text Editor section of the Options dialog. Available only in the text editor. ( CTRL-K, CTRL-D )
  • Correctly indents the selected lines of code based on the surrounding lines of code ( CTRL-K, CTRL-F )
like image 169
a.b Avatar answered Dec 04 '22 08:12

a.b