Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

No default code editor

Discussion in 'Editor & General Support' started by damemelba, May 3, 2021.

  1. damemelba

    damemelba

    Joined:
    May 1, 2021
    Posts:
    2
    Hey guys, I'm brand new to Unity so thanks for your patience if this Q has been asked 100 times before.

    I've downloaded Ruby's Adventure and I'm going through the tutorial. Just got to the part 7. and when I double click on the new script file it doesn't open the default code editor as it says should happen during the tutorial, instead windows prompts me to choose a program to edit code with. I've tried looking around on google and youtube but can't seem to find out what I've done wrong! Why doesn't the default code editor open as it should?

    Running Unity hub 2.4.3 and the project is in Unity 2020.3.6f1
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    You may have to select you script editor of choice in the unity preferences.

    Edit -> Preferences -> External Tools -> External Script editor.

    In case there is noting to select you may want to install visual studio community edition.
     
    Sudenhammas and damemelba like this.
  3. damemelba

    damemelba

    Joined:
    May 1, 2021
    Posts:
    2
    I ended up installing visual studio and that seems to work just fine with the tutorial. Thanks for the help!