Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Format SQL Script in Visual Studio 2012 [closed]

Normally we can format code or markup in visual studio with Ctrl + K + D shortkeys.

How we can format SQL script code like stored procedures or views or other things using shortkeys?

Note: I am using SSDT with VS2012, where I can edit scripts of a database, but I can't find format option.

like image 369
Nexus23 Avatar asked Feb 21 '13 12:02

Nexus23


1 Answers

I don't think there's a built-in SQL Format option for SSDT. You can use a plug-in such as Red-Gate's SQL Prompt to get that functionality, but I don't think there's a native option for formatting SQL at this time.

like image 152
Peter Schott Avatar answered Oct 19 '22 04:10

Peter Schott