页首Html代码

返回顶部

vs2013修改书签(vs书签文件位置)

visual studio 2013 的书签功能很好用,可以记录一些代码的位置;方便查阅;

不过当项目被他人修改过后,svn update 更新过后,书签的文件行号不变,但是已经不再是原来记录的哪一行了,vs并没有提供直接修改书签行号的功能,这个很蛋疼,很烦人!

 

首先要定位vs书签文件被微软的vs保存到了那个文件,其实就是: 解决方案sln目录下的suo文件里面。

 

suo文件和sln的描述可以参考:

When a Web site is created, a solution file (.sln) and a hidden solution user options file (.suo) are created. By default, these files are created in the My Documents\Visual Studio 2005\Projects folder. bcoz they are not required in the deployed website.

SLN ( own's the following details):

    * A list of the projects that are to be loaded into Visual Studio 2005
    * A list of project dependencies
    * Microsoft Visual SourceSafe information
    * A list of add-ins that are available 

SUO ( own's the following files):

    * The task list
    * Debugger break points and watch window settings
    * Visual Studio window locations 

把suo文件用7zip打开,可以发现是一个 compund 压缩文件,应该是微软的压缩格式吧。。

可以发现里面有一个叫做 BookmarkState 的文件,抽取出来,notepad++打开,发现 有i许多NULL ,但依稀可以发现 有字母。应该是unicode格式,只不过现在无法正常阅读,算是二进制文件了,不能随意修改了。。

如果有winhex 等二进制工具 应该可以修改,现在不太方便折腾,回来继续研究,只要能够修改行号,那么会方便许多的!

posted @ 2017-02-15 13:41  ayanmw  阅读(2319)  评论(2编辑  收藏  举报

页脚Html代码