세상을 이롭게

[VS2019] 창 분할시 재시작 하는 문제 본문

C,C++

[VS2019] 창 분할시 재시작 하는 문제

2021. 5. 7. 10:12

developercommunity.visualstudio.com/t/unexpected-vs-crash-when-docking-or-splitting-wind/1323017#T-N1330689

 

Unexpected VS crash when docking or splitting windows

 

[severity:It's more difficult to complete my work] Visual Studio started crashing when docking windows or splitting them via the mouse. Curiously, ...

developercommunity.visualstudio.com

KB 업데이트를 삭제하는 방법과 devenv.exe.config를 수정하는 방법이 있었다.

본인은 devenv.exe.config 를 수정하는 방법으로 해결하였다.

Everything 으로 찾은 devenv.exe.config

[관리자 권한 필요]

위 링크에서 이렇게 말한다.

Edit %InstallRoot%\Common7\IDE\devenv.exe.config and %LocalAppData%\Microsoft\VisualStudio\16.0_xxx\devenv.exe.config and append the following text to the <AppContextSwitchOverrides> element’s value attribute:

;Switch.System.Windows.Interop.MouseInput.OptOutOfMoveToChromedWindowFix=true;Switch.System.Windows.Interop.MouseInput.DoNotOptOutOfMoveToChromedWindowFix=true   

After restarting VS, you should be able to drag your VS windows around without crashing.

직독직해 능력을 발휘하여 우리는 다음과 같은 

  • %InstallRoot%\Common7\IDE\devenv.exe.config
  • %LocalAppData%\Microsoft\VisualStudio\16.0_xxx\devenv.exe.config 

파일에 대해  AppContextSwitchOverrides 속성에

;Switch.System.Windows.Interop.MouseInput.OptOutOfMoveToChromedWindowFix=true;Switch.System.Windows.Interop.MouseInput.DoNotOptOutOfMoveToChromedWindowFix=true  

문장을 추가한다.

AppContextSwitchOverrides 는 18번 라인에 있었다.

위 해결방법에서는 두 경로에 대해 해주라고 이야기 하였으나 1번 경로에만 해주어도 괜찮았다.

이상.