Search Unity

External Script Editor resetting to default on restart

Discussion in 'Editor & General Support' started by djkaras4u, Jun 29, 2021.

  1. djkaras4u

    djkaras4u

    Joined:
    Dec 22, 2019
    Posts:
    1
    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!

    - DJ
     
    MysteriousTaway likes this.
  2. Vectorbox

    Vectorbox

    Joined:
    Jan 27, 2014
    Posts:
    232
    Last edited: Jun 29, 2021
  3. polerin

    polerin

    Joined:
    Apr 11, 2013
    Posts:
    11
    did you ever figure this out? I have it reset it to VSC every time I restart unity, and it's driving me up the wall. Unity version 2021.1.21
     
  4. billtg

    billtg

    Joined:
    Apr 15, 2017
    Posts:
    1
    I'm also having this problem in 2021.1.23f1
     
    kutaiba122 likes this.
  5. Scytail

    Scytail

    Joined:
    Nov 25, 2017
    Posts:
    1
    This is still an issue as of 2021.2.7f1
     
  6. cephaswilco

    cephaswilco

    Joined:
    Jan 23, 2017
    Posts:
    1
    I get this issue too.
     
  7. Saaskun

    Saaskun

    Joined:
    Nov 29, 2019
    Posts:
    51
    Same here with 2021.2.9
     
  8. Danosch

    Danosch

    Joined:
    Feb 3, 2019
    Posts:
    1
    Same here with 2021.2.10f1

    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.
     
    Last edited: Feb 10, 2022
  9. TommyNbg

    TommyNbg

    Joined:
    Oct 5, 2019
    Posts:
    5
    Same here with 2021.3.4f1.243
     
  10. daikane

    daikane

    Joined:
    Jul 15, 2022
    Posts:
    1
    Yep, same - editor keeps resetting every restart. (2021.3.5f1)
     
  11. Coredumping

    Coredumping

    Joined:
    Dec 17, 2014
    Posts:
    51
    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.
     
    Last edited: Jul 21, 2022
  12. Comet250

    Comet250

    Joined:
    Nov 12, 2021
    Posts:
    1
    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...
     
  13. SlimyFrog123

    SlimyFrog123

    Joined:
    May 20, 2022
    Posts:
    1
    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!
     
  14. Moxteth

    Moxteth

    Joined:
    Jan 7, 2021
    Posts:
    1
    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.
     
    kmaraszkiewicz86 likes this.
  15. marteko

    marteko

    Joined:
    Apr 4, 2016
    Posts:
    56
    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.
     
  16. eren_sisman20

    eren_sisman20

    Joined:
    Sep 30, 2022
    Posts:
    1
    Thank you soo much, now I'm working happily at the Unity.
     
    moonadel_ and marteko like this.
  17. Lordx2

    Lordx2

    Joined:
    Sep 1, 2017
    Posts:
    1
    i logged in just to let everybody know that this solved my problem
     
    moonadel_, Drechriarx and marteko like this.
  18. oekose43

    oekose43

    Joined:
    May 2, 2021
    Posts:
    5
    Thank you so much. You fixed my problem
     
  19. Pralev

    Pralev

    Joined:
    Feb 14, 2023
    Posts:
    1
    This should be sticky. Thank you very much.
     
  20. TurkishZombie

    TurkishZombie

    Joined:
    Oct 13, 2018
    Posts:
    1
    Thank you
     
  21. gokuthedev

    gokuthedev

    Joined:
    Sep 24, 2021
    Posts:
    1
  22. zuhane

    zuhane

    Joined:
    Mar 29, 2019
    Posts:
    6
    This worked! Thank you, fladevart :D
     
  23. MysteriousTaway

    MysteriousTaway

    Joined:
    Mar 30, 2022
    Posts:
    1
    Same issue :/
    version: 2022.2.11f1
     
  24. SchGames

    SchGames

    Joined:
    May 12, 2023
    Posts:
    3
    Flavdev, you're the man! It's working!
     
  25. asik32

    asik32

    Joined:
    Feb 28, 2021
    Posts:
    1
    Flavdev, you're the man! It's working! Thank you!
     
  26. Bren007pie

    Bren007pie

    Joined:
    Jul 11, 2020
    Posts:
    1
    This worked THANK YOU
     
  27. RobG88

    RobG88

    Joined:
    May 28, 2015
    Posts:
    28
    Unity Hub 3.5.0 and Unity 2023.1.5 experienced the same issue, same with most of 2022.LTS and 2023.1.x too.
    Starting Hub as Admin and launching the project I saw that the External Script Editor had STUCK!

    Thank you for the 'fix'
     
    jonc01 likes this.
  28. TeeTekTrab

    TeeTekTrab

    Joined:
    Sep 18, 2021
    Posts:
    1
    Perfect! Thank you!
     
  29. bricefr

    bricefr

    Joined:
    May 3, 2015
    Posts:
    61
    Same here. Getting tired of having to switch the external editor every now and then. After all those years, could this bug be fixed once for all?
     
  30. Fizzl

    Fizzl

    Joined:
    Aug 6, 2013
    Posts:
    1
    Still an issue in June 2023
     
    WayzzEasy likes this.
  31. wechat_os_Qy0wy97_3yRNHVSOviK_4z4cw

    wechat_os_Qy0wy97_3yRNHVSOviK_4z4cw

    Joined:
    Oct 24, 2022
    Posts:
    8
    Issue still 2022.3 version.
     
  32. rainwizerd

    rainwizerd

    Joined:
    Feb 19, 2020
    Posts:
    7
    This still works and the issue is still occuring. Thank you op! 2021.3.23f1 for me
     
  33. coolfarmer

    coolfarmer

    Joined:
    Jun 14, 2018
    Posts:
    7
    As of Unity 2022.3.10, this workaround still work.
    Thanks!
     
  34. Quidney

    Quidney

    Joined:
    Sep 8, 2020
    Posts:
    10
    If someone's still having problems, do this:

    0- MAKE BACKUP OF YOUR WHOLE REGISTRY (Regedit -> File -> Export)
    1- Install RegScanner
    2- Scan for the location of the INCORRECT Script editor (For me it was Visual Studio Community 2022 that I uninstalled months ago, and the location was S:\Unity\VS22IDE\Common7\IDE\Devenv.exe)
    3- After scanning for a location IF YOU ARE 100% SURE IT IS FOR UNITY ONLY, delete all of the registries. (I knew because I had a folder specifically for Unity in S: disk)
    4- If there are problems deleting the registries, install PsExec.exe and run "PsExec -i -d -s C:\LOCATION\RegScanner.exe"
    5- Scan again and delete the rest of the registries.
     
  35. Naik_Trofimov

    Naik_Trofimov

    Joined:
    Jul 8, 2020
    Posts:
    1
    Большое спасибо! Работает!
    Th, its working! 2022.3.19f1