Search Unity

[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,896
    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,896
    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
     
    quantd, yuik, kitswas and 4 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.
     
    islesofurth likes this.
  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:
    103
    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
     
  12. Roodewald

    Roodewald

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

    ratman_studio

    Joined:
    Oct 16, 2018
    Posts:
    1
    I haven't got Visual Studio, I don't have UnityVS dir and Visual Studio Tools
    as mentioned here, I unistalled unityHub from package manager and added this UnityHub as described here,
    and now it works
     
  14. wechat_os_Qy0wy97_3yRNHVSOviK_4z4cw

    wechat_os_Qy0wy97_3yRNHVSOviK_4z4cw

    Joined:
    Oct 24, 2022
    Posts:
    8
  15. Infinite-3D

    Infinite-3D

    Joined:
    Jan 5, 2020
    Posts:
    39
    Running Unity Hub as administrator before loading up my project fixed it for me.
     
  16. Anil_OZGE

    Anil_OZGE

    Joined:
    Oct 20, 2021
    Posts:
    3
    I was having the same issue, that solved it. Thanks for the solution.