Hello! I am new to Untiy3D and I was having a few issues with the external script editor. I have it set to VSCode (Visual Studio Code) and it works perfectly fine, but when I close Unity and open it up again, it resets to “devenv.exe” (not sure what that is, probably the internal console?) I was wondering if anyone knew how to resolve this, as it gets kind of frustrating to reset it each and every time I reopen Unity. Thank you for reading!
EDIT: Instead of selecting Visual Studio Code from the dropdown, I went via “browse” and selected the devenv.exe in the Visual Studio Code installation path manually. Worked for me.
Still an issue in 2021.3.6f1, where it keeps resetting to VS 2017 from VS 2022. Selecting devenv.exe correctly sets the editor, but it still resets on launch.
Edit: I copied all the project files to another folder, as I was moving the project to git, and from that point on the setting stuck.
Issue doesn’t seem to be affected by your actual choice. I’m trying to use VS2022 with unity and it resets to vsc insiders whenever I restart unity, even if I set it to vs2022, open a script, change my input engine, etc, and then open a different script, it resets…
Same here, very annoying. I was originally just trying out VSCode, and realized that I liked VS 2022 much better for Unity Development, though now I have to set it back to VS 2022 EVERY SINGLE TIME I open a project!
Found myself here, then resolved the issue in my environment.
Had to go into the Visual Studio installer and uninstall the 2019 version that was still showing there. Once that was removed Unity projects defaulted to the VS 2022 I had kept setting. Rebooted, restarted, seems good so far.
I had the same problem. Then did the following which fixed the problem:
Right click over Unity Hub icon → “Run as administrator” → Run random or new project → In editor Edit → Preferences → Change External Scrip Editor. Close Unity and Unity Hub and open again to see if the problem is fixed.