如何在 Visual Studio 项目中分别为开发人员和团队维护书签?
Visual Studio 项目中的书签详细信息存储在哪里?
项目文件:*.csproj 解决方案文件:*.sln
我想知道默认情况下是否可以为团队和每个开发人员单独维护书签。
当我将项目签入源代码管理 (Perforce) 时,我不希望其他开发人员同步所有书签,而只希望同步少数对整个团队有用的书签。
更新#1:我们需要代码中的一些参考点 - 可以用作开发人员/支持团队之间的电子邮件和通信的速记。 为此,我们需要在团队级别维护书签。
更新#2:似乎每个人都建议不要在团队级别共享书签(由于某种原因,它是一个隐藏文件……)。 我想知道 Visual Studio 中是否有其他工具可以满足这里的目的。 书签最好的一点是它们能够超链接到代码的任何部分,如果代码库很大,这将非常有用!
>> 最接近的答案是“zainnab”(见下文),但此选项需要修改(签出)代码文件。
Where are the the bookmark details stored in a Visual Studio project?
project file : *.csproj
solution file: *.sln
I am wondering if its possible to maintain bookmarks separately for team and per developer by default.
When I check the project into source control (Perforce) I do not want all my bookmarks to sync in for other developers but only a few which are useful to the whole team.
Update #1: we need some reference point in the code - that can be used as shorthand in email and commuincaiton between developers / support teams. For that we need to maintain bookmark at team level.
Update #2: It seems everyone suggested not to share bookmarks at team level (it's a hidden file for a reason etc...). I am wondering if there is any other tool in Visual Studio to meet the purpose here. The best thing about bookmarks is their ability to hyperlink to any portion of a code which is extremely useful if the code base is HUGE!
>> Closest answer by 'zainnab' (see below), but this option requires to modify (checkout) code files.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
良好共享的书签至少对于代码审查非常有用。
Well shared bookmarks are extremely useful for code review at least.
建议您不要将书签用于团队活动,而是使用注释标记(又名“TODO”等),因为它们与源代码一起移动。
It's suggested that you NOT use Bookmarks for team activities but instead use comment tokens (aka "TODO's", etc..) as they travel with the source code.
书签存储在解决方案的 .SUO 文件中。
然而,将此文件置于源代码管理中并不是一个好主意。 这就是为什么它是一个隐藏文件。
在我看来,书签是特定于用户的,不应在团队成员之间共享。
Bookmarks are stored in your solution's .SUO file.
However it is not a good idea to put this file into source control. That's why it's a hidden file.
In my opinion, bookmarks are user-specific and should not be shared between team members.
书签,例如代码索引。 因此,这对所有团队都非常有用。
我不需要思考或搜索执行此操作的代码在哪里......
只需转到书签窗口并双击即可分类索引。
Bookmarks like index of code. So, it would be very useful for all team.
I don't need to think or search where is the code which does do that...
Just go to bookmark window and double click to categorized index.