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 等二進制工具 應該可以修改,現在不太方便折騰,回來繼續研究,只要能夠修改行號,那么會方便許多的!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM