如何改变Visual Assist数据库文件路径(How do I change where VA stores its database?)

来源:互联网 发布:银行家算法代码 编辑:程序博客网 时间:2024/05/18 21:07

原文链接

By default Visual Assist X stores its symbol database in the following directory tree:


Under Windows 2000 and Windows XP:
C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\VisualAssist\

For VS2010 under Windows XP:
C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Microsoft\VisualStudio\10.0\Extensions\Whole Tomato Software\Visual Assist X\

Under Windows Vista:
C:\Users\%USERNAME%\AppData\Local\VisualAssist\

For VS2010 under Windows Vista, Windows 7 and Windows 8 either:
C:\Users\%USERNAME%\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Whole Tomato Software\Visual Assist X\

or

C:\Users\%USERNAME%\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\hashed name\Data\

For VS2012 under Windows 7 and Windows 8:
C:\Users\%USERNAME%\AppData\Local\Microsoft\VisualStudio\11.0\Extensions\hashed name\Data\

If you are using Visual Assist X 1614 and above then you can tell Visual Assist X to use a different directory by setting the registry key:

HKCU \ Software \ Whole Tomato \ UserDataDir = "C:\new_path\"

You will need to create this String value since Visual Assist X does not create it by default.


In Visual Assist X 1862 and above you can use Environment Variables in this path, so long as you use a REG_EXPAND_SZ registry value (Expandable String Value).

For example you could use "C:\%USERNAME%\new_path\"

Please note that environment variables are not supported if you use a REG_SZ (String Value).


Visual Assist X will store the symbol database, history, cache and temporary files in this new directory tree. Simply delete the key to revert back to the default locations for the symbol database.

Note you need to close all instances of the IDE before setting this registry key.

C盘空间越来越小了,检查一下发现VSA又囤积好几G的数据库文件。但是记得之前修改过路径了,看来新版VSA无效了,到官方论坛找了一下,找到这个。只要修改原来 REG_SZ    REG_EXPAND_SZ 就可以了。

原创粉丝点击