默认为 Visual Studio 2012 数据库项目中的 T-SQL 窗格视图 [英] Default to the T-SQL Pane view within Visual Studio 2012 Database Project

查看:25
本文介绍了默认为 Visual Studio 2012 数据库项目中的 T-SQL 窗格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Visual Studio 2012 中处理数据库项目时,当您添加或编辑表时,VS 默认为设计视图"窗格.虽然您可以在分屏模式下工作,但 T-SQL 窗格默认为底部窗格.

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.

因为我更喜欢直接使用 T-SQL 而不是设计器,所以我经常切换到使 T-SQL 窗格成为最顶层的编辑器,以便处理对象.不幸的是,VS 不记得这个首选项,所以每次我处理一个表时,我都必须更改以使 T-SQL 窗格显示在顶部而不是设计器窗格的下方.

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.

这对我来说比其他任何事情都更令人烦恼,但是当我发现自己不断切换窗格时,我想知道是否有人知道 VS 或注册表中的设置或其他一些会强制 VS 进行任一设置的设置还记得我的偏好还是默认设置在设计器窗格顶部的 T-SQL 窗格?

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?

推荐答案

如果你想彻底摆脱设计师,试试以下方法:

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

  1. 右键单击该文件,然后选择打开方式...
  2. 选择Microsoft SQL Server Data Tools, T-SQL Editor,
  3. 点击设为默认
  4. 点击确定.

下次您只需双击该文件即可在 T-SQL 中打开它.

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

这篇关于默认为 Visual Studio 2012 数据库项目中的 T-SQL 窗格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆