How to set your External Scripts Editor as default
-
If you just select Visual Studio, then it will been reset every time you reopen your Unity Editor
-
So you could click Browse, and select for example: C:\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe
Reopen Unity Editor, you will see it is default now.
1.Edit - Preferences If you directly select your Visual in the External Script Editor here, then the next time you open the Unity Editor , the default is still Open by file extension
2. So we select Browse and find your Visual Studio path such as
C:\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe
Reopen Unity Editor and you will find that your Visual Studio is already the default value.