Default to the T-SQL Pane view within Visual Studio 2012 Database Project
Asked Answered
D

1

30

When working with a Database Project in Visual Studio 2012, VS defaults to the "Design-View" pane when you add or edit a table. While you can work in split-screen mode, the T-SQL pane defaults to the bottom pane.

As I prefer to work with T-SQL directly as opposed to the designer, I constantly am switching to make the T-SQL pane the top-most editor in order to work with the object. Unfortunately, VS does not remember this preference, so each and every time I work with a table I must change to make the T-SQL pane appear on top as opposed to beneath the designer pane.

I've looked to see if there is a setting under Tools --> Options to control this behavior, but so far I have been unable to find a setting that does so. I've done a few google searches on the topic as well, but haven't found anything helpful for this particular case.

This is more of an annoyance than anything else for me, but as I am finding myself constantly switching panes I wonder if anyone knows of a setting, either within VS or the registry or some other config file that would force VS to either remember my preference or default to the T-SQL Pane on top of the Designer Pane?

Duclos answered 28/1, 2013 at 20:57 Comment(0)
M
57

If you want to get rid of the designer completely, try the following:

  1. Right-click on the file, and select Open With...
  2. Select Microsoft SQL Server Data Tools, T-SQL Editor,
  3. Click on Set as Default
  4. Click OK.

Next time you'll be able to simply double clicking the file to open it in T-SQL.

Maxma answered 28/1, 2013 at 21:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.