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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Doesn't Automatically open the document when opening new script. (small QOL issue)

Discussion in 'Editor & General Support' started by greetthemoth, Sep 2, 2020.

  1. greetthemoth

    greetthemoth

    Joined:
    Dec 21, 2017
    Posts:
    2
    When creating a new script, visual studios window automatically pops up (as expected), how ever it doesn't open the document i just created, instead it tells me something about inconsistent line endings and i have to go back to unity to double click and open the newly created file. What's causing this to happen?
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,724
    1. How are you creating the script? From the Add Component menu? From the Assets -> Create menu? From the context menu in the Project window?
    2. Are you using both Windows and a Mac to work on your project (or collaborating with someone using a different operating system than you?). That could cause the mixed line endings warning.
     
  3. greetthemoth

    greetthemoth

    Joined:
    Dec 21, 2017
    Posts:
    2
    Im creating it through the asset menu, using windows, no collaboration.