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

原文链接

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 就可以了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值