• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by ahmadian · Jun 08, 2016 at 08:44 AM · scripting problemeditor-scriptingvisual studiovisualstudioexternal-tools

Unity external script editor won't change

Hello I've been using unity 5.3.0f4 for almost a year and today it suddenly decided that it wants to open the scripts with code.cmd (whatever that is!). well the scripts open in mono at the and but I need to work with VS. but when I go to preferences...>External Tools , and try to change it back , nothing will change in this tab , absolutely nothing. please can someone help?

EDIT: So if this question (unlike my other questions) got moderated, here is the cause : in the preferences there was a tab named VSCODE, I enabled integration there and that caused the editor script to stuck on code.cmd!!!

Comment
briandlee
CoughE
Bamboy
emersondesign
BeyondMASC
Novidoux

People who like this

6 Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image emersondesign · Jul 29, 2018 at 11:51 AM 0
Share

Same here ... so freaking annoyed right now.

6 Replies

  • Sort: 
avatar image

Answer by dutchkiller2000 · Mar 16, 2017 at 08:34 PM

just found your post because i had the same isue.

this fixed it for me:

search on your pc for code.cmd and delete it, it doesnt seem to effect anything and you can swap editors again

Comment

People who like this

0 Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image emersondesign · Jul 29, 2018 at 11:47 AM 0
Share

Tried this - but it keeps coming/reverting back to code.cmd even if I delete it. ARGH!!!

File for me was here: C:\Program Files\Microsoft VS Code\bin\code.cmd

avatar image

Answer by emersondesign · Jul 29, 2018 at 11:58 AM

In case it helps anyone... to get out of this myself I:

  • Opened Unity project

  • Deleted the VSCode asset

  • Closed Unity

  • Re-opened Unity project

  • Changed my external editor

  • .... the change finally stuck.

And I was so close to finally trying VSCode ... forget that!! =/

Related:

  • https://forum.unity.com/threads/frustrating-editor-doesnt-save-my-external-script-editor-preferences.319803/

  • https://goo.gl/JsvdCj

PS: Sorry for formatting. Is it me or does the Unity comment editor feel/behave/work like it was built in 2001? Yikes...

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by BeyondMASC · Apr 20, 2020 at 05:54 PM

Close and re-open the script works for me.

Cheers!

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Novidoux · Jun 25, 2020 at 09:31 PM

Still have this issue with 2020.1.0.b13

My fix: I had to manually edit the standard program for opening .cs files in windows for uity to finally recognize VS2019 as the default editor. Even though I had changed it in preferences.

Comment

People who like this

0 Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image brian1gramm1 · Oct 18, 2020 at 12:35 PM 1
Share

Can you explain how you edited the standard program? Were is it located?

All of my preferences are not saving every time I close Unity. I'm using Unity 2020.1.5.f1 and VS 2019.16.7.6

Thanks for the help.

avatar image

Answer by Chuvisco · Jan 16, 2022 at 01:27 PM

One posibility that worked for me:
1. Edit > Preferences > External Tools & change to your script editor (Visual Studio Code for me)
2. File > Save Project
This persisted the setting for me,One posibility that worked for me:
1. Edit > Preferences > External Tools & change to your script editor (Visual Studio Code for me)
2. File > Save Project
This persisted the setting for me

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta on June 13. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

VSC Code "The type or namespace could not be found" - but it't not really true! 1 Answer

How to set Visual Studio 2010 as default script editor in Unity 6 Answers

Visual studio not loading 1 Answer

Adding an element to List a .asset file of ScriptableObject 0 Answers

How to save field changes to scene file using ContextMenu? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges