我被告知……
‘sms-20170225122824.xml’ is too large to open with XML editor. The
maximum file size is ’10’ MB. Please update the registry key
‘HKCU\Software\Microsoft\VisualStudio\15.0_65fa8ce7_Config\XmlEditor\MaxFileSizeSupportedByLanguageService’
to change the maximum size.
密钥15.0_65fa8ce7_Config不仅不存在,所以我手动创建它(加上子密钥)但是MaxFileSizeSupportedByLanguageService是什么类型的?
为什么它不存在呢?
这是一个小型的PowerShell,可以为所有用户完成这项工作
原文链接:https://www.f2er.com/xml/292308.html$vsWherePath = Join-Path ${env:ProgramFiles(x86)} "Microsoft Visual Studio\Installer\vswhere.exe" $installPath = &$vsWherePath -all -latest -property installationPath $vsregedit = Join-Path $installPath 'Common7\IDE\vsregedit.exe' & $VsRegEdit set "$installPath" "HKLM" "XmlEditor" "MaxFileSizeSupportedByLanguageService" string 100
如果用户配置单元中已有设置,您可以删除它们或在用户级别设置值 – 这也不需要管理员权限:
$vsWherePath = Join-Path ${env:ProgramFiles(x86)} "Microsoft Visual Studio\Installer\vswhere.exe" $installPath = &$vsWherePath -all -latest -property installationPath $vsregedit = Join-Path $installPath 'Common7\IDE\vsregedit.exe' & $VsRegEdit set "$installPath" "HKCU" "XmlEditor" "MaxFileSizeSupportedByLanguageService" string 100