Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

[Frustrating] Editor doesn't save my external script editor preferences.

Discussion in 'Editor & General Support' started by vexe, Apr 19, 2015.

  1. vexe

    vexe

    Joined:
    May 18, 2013
    Posts:
    644
    Hi all,

    It seems no matter what I do, Unity always resets the values I set for my custom external editor tool which is gVim upon restart. I set the editor executable to gVim.exe, and the arguments to `--remote-silent +$(Line) "$(File)"` but if I close and open Unity the settings revert back to UnityVs. Frustrating indeed since I sincerely hate VS. I've asked this before on UA but didn't get any answers. (crosslink)

    Thanks for any help.
     
    Last edited: Apr 19, 2015
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,524
    Just a guess, but try deleting UnityVS folder from your project, maybe it's constantly tweaking that value when assembly reload happens.
     
    vexe likes this.
  3. vexe

    vexe

    Joined:
    May 18, 2013
    Posts:
    644
    @Tomas1856 Thanks for the reply. That does seem to work, deleting UnityVS folder and restarting Unity the setting persist. However; that's not a solution for me because I still use VS for debugging...
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,524
    You should ask UnityVS developer regarding this behavior, maybe there is some setting for this.
     
  5. vexe

    vexe

    Joined:
    May 18, 2013
    Posts:
    644
    Sent an email to Jb, he confirmed that UnityVS does indeed override the setting but I could tell UnityVS not to do that by unchecking: Visual Studio Tools | Configurations | Open scripts with visual studio
     
  6. JBurien954

    JBurien954

    Joined:
    Apr 20, 2021
    Posts:
    2
    Where do I find that checkmark thing for that
     
  7. JBurien954

    JBurien954

    Joined:
    Apr 20, 2021
    Posts:
    2
    Well all I had to do was file save project not save scene
     
    yuik, kitswas, selfdefiant and 3 others like this.
  8. dead_byte_dawn

    dead_byte_dawn

    Joined:
    May 7, 2015
    Posts:
    16
    Just came across this when switching to VS-2022. thanks.
     
  9. valba

    valba

    Joined:
    Nov 11, 2017
    Posts:
    5
    I did this with 2021.1.7f1 and still the same, I set VS-2022 in preferences but every time I close and open Unity, VS-2019 is set again.
     
  10. Klamore74

    Klamore74

    Joined:
    Jun 17, 2013
    Posts:
    99
    Same problem here with 2021.3.2f1. I need to re-setup it every time unity starts.

    I tried also to remove vs-2019 but didn't works
     
  11. enaielei

    enaielei

    Joined:
    Apr 8, 2021
    Posts:
    11
    Having the same problem on Unity 2021.3.7f1. Can confirm this solution is working.
    Just set your preferred external script editor then save the project right after.
    upload_2022-8-4_22-9-15.png
     
    kitswas, Fikek, Excrubulent and 4 others like this.
  12. Roodewald

    Roodewald

    Joined:
    Jan 26, 2021
    Posts:
    1
    Reinstalling Visual Studio helped me. If the problem persists, try reinstalling Unity Editor already