Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 如何更改VS2012 TFS中的文件关联?_Visual Studio_Tfs_Visual Studio 2012_Ssms_File Association - Fatal编程技术网

Visual studio 如何更改VS2012 TFS中的文件关联?

Visual studio 如何更改VS2012 TFS中的文件关联?,visual-studio,tfs,visual-studio-2012,ssms,file-association,Visual Studio,Tfs,Visual Studio 2012,Ssms,File Association,当我在VS2012的源代码管理器中双击一个.sql文件时,它就在Visual Studio中打开了。如何使它在SQL Server Management Studio中打开?从VS中更改SQL扩展选项 或者右键单击并更改.sql文件的默认操作 起初我误解了你的问题 转到:工具>>选项>>环境>>选项卡和窗口 然后取消选中预览选项卡部分中的“允许在预览选项卡中打开新文件” 也可以右键单击该文件并选择“打开方式”。您可能需要浏览到位于下面的SSMS 根据您安装的SSMS版本和操作系统,它将位于

当我在VS2012的源代码管理器中双击一个.sql文件时,它就在Visual Studio中打开了。如何使它在SQL Server Management Studio中打开?

从VS中更改SQL扩展选项

或者右键单击并更改.sql文件的默认操作

起初我误解了你的问题

转到:工具>>选项>>环境>>选项卡和窗口

然后取消选中预览选项卡部分中的“允许在预览选项卡中打开新文件”

也可以右键单击该文件并选择“打开方式”。您可能需要浏览到位于下面的SSMS

根据您安装的SSMS版本和操作系统,它将位于以下文件夹之一:

  • 在x64机器上: C:\ProgramFiles(x86)\Microsoft SQL Server{your_version}\Tools\Binn\VSShell\Common7\IDE

  • 在x32机器上:

    C:\Program Files\Microsoft SQL Server{your_version}\Tools\Binn\VSShell\Common7\IDE


摆弄工具/选项并没有奏效。该文件仍然在VS中打开,直到右键单击并使用打开-上下文菜单上不存在这样的选项。您上次的编辑可能会起作用,但我没有机会尝试。我安装了VS2012 TFS电动工具,并在关联菜单中添加了该功能。所以它现在起作用了。谢谢,很高兴你能用上。我在想,也许您没有安装power tools,这就是为什么我可以在我的终端上看到它。您能否确认VS2012 TFS power tools提供了相关功能?open with将从解决方案文件上下文中显示。一旦您关联了文件扩展名或使用解决方案上下文中的“打开方式”上下文打开了文件,TFS将打开具有该关联的文件。不需要电动工具。