Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • 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
6
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
Add comment · 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

· Add your reply
  • Sort: 
avatar image
0

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
Add comment · 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 co$$anonymous$$g/reverting back to code.cmd even if I delete it. ARGH!!!

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

avatar image
0

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
Add comment · 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
0

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

Close and re-open the script works for me.

Cheers!

Comment
Add comment · 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
0

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
Add comment · 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
0

Answer by Chuvisco · Jan 16 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
Add comment · 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
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

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

Passing data between EditorWindows 0 Answers

How do I Instantiate a prefab on another game object's position (2D) 1 Answer

Is there a way to stop Visual Studio 2012 from requiring a reload whenever new scripts are added in unity? 3 Answers


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