Search Unity

Question Unable to open c# script

Discussion in 'Editor & General Support' started by AYT1121, Dec 4, 2022.

  1. AYT1121

    AYT1121

    Joined:
    Dec 4, 2022
    Posts:
    1
    I am on a Mac with iOS 12.5 and have been trying to open a new c# script but it kept asking me to create a directory to open it. I chose the script editor app and tried again, now it will not open. Says that it isn't compatible but it let me choose the app. Now I cannot figure out how to create a new directory and I can't find an application to open my script.

    *I am following the tutorial and am attempting the 2nd video in lesson 1.2
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,689
    This may help you with intellisense and possibly other Visual Studio integration problems:

    Sometimes the fix is as simple as doing Assets -> Open C# Project from Unity. Other times it requires more.

    Other times it requires you also nuke the userprefs and .vsconfig and other crufty low-value high-hassle files that Visual Studio tends to slowly damage over time, then try the above trick.

    Barring all that, move on to other ideas:

    https://forum.unity.com/threads/intellisense-not-working-with-visual-studio-fix.836599/

    Also, try update the VSCode package inside of Unity: Window -> Package Manager -> Search for Visual Studio Code Editor -> Press the Update button

    Also, this: https://forum.unity.com/threads/no-suggestions-in-vscode.955197/#post-6227874