To complete @ray-koopa's answer:
要完成@ray-Koopa的回答:
To change values in the private registry hive by hand, you can use regedit.exe
to load a private hive. You need to select the HKEY_USERS
node, and click the File > Load Hive…
menu. You select the %LOCALAPPDATA%\Microsoft\VisualStudio\15.0_<id>\privateregistry.bin
file, give a name to the hive (I entered VS2017PrivateRegistry
) and now you can see the 15.0_<id>_Config
key populated as usual
要手动更改专用注册表配置单元中的值,可以使用regedit.exe加载专用配置单元。您需要选择HKEY_USERS节点,然后单击文件>加载配置单元…菜单。您选择%LOCALAPPDATA%\Microsoft\VisualStudio\15.0_
\privateregistry.bin文件,为配置单元命名(我进入了VS2017PrivateRegistry),现在您可以看到15.0_
_Config键如常填充
Note: use File > Unload Hive
when done
注意:完成后使用文件>卸载配置单元
source: https://social.msdn.microsoft.com/Forums/vstudio/en-US/f636ee47-1eb7-45ed-ae2a-674cbabb8b2c/clear-mru-list-in-visual-studio-2017?forum=visualstudiogeneral
来源:https://social.msdn.microsoft.com/Forums/vstudio/en-US/f636ee47-1eb7-45ed-ae2a-674cbabb8b2c/clear-mru-list-in-visual-studio-2017?论坛=visualstudiogeneral
VS2017 no longer uses the actual Windows registry, and uses a registry file stored at %LOCALAPPDATA%\Microsoft\VisualStudio\15.0_<random-characters>\privateregistry.bin
.
VS2017不再使用实际的Windows注册表,而是使用存储在%LOCALAPPDATA%\Microsoft\VisualStudio\15.0_
\privateregistry.bin.的注册表文件
You can load it as a hive in the registry editor if you want to look into it to check for the start page contents. Otherwise simply try copying and restoring that file in your new installation.
如果要查看它以检查起始页内容,可以将其作为配置单元加载到注册表编辑器中。否则,只需尝试在新安装中复制和恢复该文件。
If you use VS 2022 then have a look into:
如果你使用的是VS 2022,那就来看看:
C:\Users\user\AppData\Local\Microsoft\VisualStudio\17.0_some_random_ id\ApplicationPrivateSettings.xml
C:\Users\user\AppData\Local\Microsoft\VisualStudio\17.0_some_random_id\应用程序隐私设置s.xml
It' a json file with some weird xml at the start and end.
这是一个json文件,在开头和结尾都有一些奇怪的XML。
Regards
问候
If you use the key name as VS2017PrivateRegistry the location where recent file list will be:-
VS2017PrivateRegistry\Software\Microsoft\VisualStudio\15.0_\ApplicationPrivateSettings_metadata\baselines\CodeContainers\Offline
如果您使用密钥名称作为VS2017PrivateRegistry,则最近文件列表的位置将是:-VS2017PrivateRegistry\Software\Microsoft\VisualStudio\15.0_\ApplicationPrivateSettings_metadata\baselines\CodeContainers\Offline
更多回答
I cannot find the start page's recent items list in this hive. ....\AppData\Local\Microsoft\VisualStudio\15.0_7393ba1a
我在此配置单元中找不到开始页的最近项目列表。....\AppData\Local\Microsoft\VisualStudio\15.0_7393ba1a
VS 2019 also uses this file.
VS 2019也使用此文件。
我是一名优秀的程序员,十分优秀!