TFS:查看搁置集的详细信息时,如何在 VS IDE 中查看 .cs 文件? [英] TFS: How do I view .cs files in the VS IDE when viewing details of a shelveset?

查看:25
本文介绍了TFS:查看搁置集的详细信息时,如何在 VS IDE 中查看 .cs 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的代码审查过程中,我们打开搁置集的详细信息以查看已处理的所有文件.右键单击并选择比较"非常适合现有(修改过的)文件.但是,添加文件后,我只想查看该文件.双击(或右键单击 -> 查看)在记事本中打开 .cs(和 .sql)文件.当我尝试打开一个 .PRC 文件(我们存储过程的扩展名)时,我会收到一个提示,让我选择用于查看的程序.

For our code review process we open the details of a shelveset to see all files that have been worked on. Right clicking and choosing "Compare" works great for existing ( modified ) files. But, when a file has been added I just want to view the file. Double clicking ( or right click -> view ) opens .cs ( and .sql )files in notepad. When I try to open a .PRC file ( extension for our stored procedures ) I get a prompt that allows me to choose what program to use for viewing.

有谁知道如何让这个提示显示 .cs 文件(以及所有其他文件,就此而言)

Does anyone know how to get this prompt to show up for .cs files ( and all other files, for that matter )

谢谢!

配置:视觉工作室 2008 SP1Visual Studio 2008 团队资源管理器.net 3.5 SP1团队基础服务器 2005

Configuration: Visual Studio 2008 SP1 Visual Studio 2008 Team Explorer .net 3.5 SP1 Team Foundation Server 2005

推荐答案

双击(或右键单击 -> 查看)在记事本中打开 .cs(和 .sql)文件.当我尝试打开一个 .PRC 文件(我们存储过程的扩展名)时,我会收到一个提示,让我选择用于查看的程序.

Double clicking ( or right click -> view ) opens .cs ( and .sql )files in notepad. When I try to open a .PRC file ( extension for our stored procedures ) I get a prompt that allows me to choose what program to use for viewing.

这并不是真正的 TFS 问题,而是更多地与本地 Windows 的设置方式有关.如果您在 Windows 资源管理器中导航到包含 .cs.sql 文件的文件夹,然后双击它们,您将能够看到 TFS 只是调用了为这些文件配置的标准行为.

This isn't really a TFS issue, but more to do with how your local Windows is set up. If you navigate in Windows Explorer to a folder with .cs and .sql files in, and double-click them, you will be able to see that TFS is simply invoking the standard behaviour that is configured for these files.

要更改它,再次在 Windows 资源管理器中,转到 Tools |选项,然后在File Types 选项卡上找到.cs 文件扩展名,选中它后单击Delete.现在尝试打开 .cs 文件将使 Windows 询问您如何处理它(请注意,如果您选中始终使用所选程序打开此类文件"复选框,您将回到你开始的地方).

To change it, again in Windows Explorer, go to Tools | Options, and on the File Types tab find the .cs file extension, and with it selected click Delete. Now attempting to open a .cs file will make Windows ask you what to do with it (note that if you check the 'Always use the selected program to open this kind of file' checkbox, you will be back where you started).

这是一个全局设置 - 我不知道是否有办法让 TFS 做一些不同于仅仅要求 Windows 处理文件的事情.因此,如果您想在资源管理器中双击 .cs 文件时保持启动记事本的能力,仍然让 TFS 询问如何处理它们,这不会帮助.另外,这些说明是Vista 之前的——我不知道Vista 有什么变化.如果您使用的是 Vista 而这些说明没有帮助,您可能想在 superuser.com 上询问该怎么做.

This is a global setting - I don't know if there's a way to make TFS do something different from just asking Windows to deal with the file. So if you want to keep the ability to launch notepad when double-clicking .cs files in Explorer, but still have TFS ask what to do with them, this won't help. Also, these instructions are pre-Vista - I don't know what's changed in Vista. You might want to ask on superuser.com what to do if you're on Vista and these instructions don't help.

这篇关于TFS:查看搁置集的详细信息时,如何在 VS IDE 中查看 .cs 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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