Gareth
Gareth

Reputation: 2484

Can you turn off Visual Studio 2008 Query formatting?

Is it possible to turn off the query re-formatting that happens when you edit a query for a database in Visual Studio? (i.e. r-click a data source and select New Query)

This is happening when we are writing sql queries against a sql compact 3.5 database.

Its rather irritating when your carefully indented and formatted query is munged into visual studio's formatting (which is illegible!). I cannot find any setting in the options dialog.

Upvotes: 0

Views: 588

Answers (2)

Gareth
Gareth

Reputation: 2484

Just to close this one off, as far as I can tell, there is no way to do this.

Upvotes: 0

Darrel Miller
Darrel Miller

Reputation: 142044

I use the Add New "Sql Script" instead of the Query to prevent re-formating but still keep the syntax highlighting.

Upvotes: 1

Related Questions