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. Dismiss Notice

Question Vscode

Discussion in 'Editor & General Support' started by Azenomor, Sep 1, 2023.

  1. Azenomor

    Azenomor

    Joined:
    Apr 16, 2022
    Posts:
    2
    I have vs code 1.81, Unity 2020/2021, mono 6.12, .net 7, .net standard 2.1 and intellisence stopped working in vscode.
    I have the c# extension, c# dev kit, and Unity extensions.
    When I load a cs script it has the Unity color coding for a few seconds and then all the green becomes default blue and intellisence stops working. It was working as of a few weeks ago, then just stopped working. I’ve read many forum posts and can’t find an answer the works.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,713
    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 package inside of Unity: Window -> Package Manager -> Search for Visual Studio Editor -> Press the Update button

    Depending on flavor and version of Visual Studio, it may also have an installation step that you perform within the actual Visual Studio. This step seems finicky at best and may require multiple openings of VS before it comes up.

    Update: The VSCode extension has been deprecated and abandoned:

    https://forum.unity.com/threads/update-on-the-visual-studio-code-package.1302621/

    Update: the VSCode integration is back... maybe!?

    https://forum.unity.com/threads/microsoft-previews-unity-extension-for-visual-studio-code.1468913/

    There may be a community fork available that is receiving updates.

    https://github.com/Chizaruu/com.tsk.ide.vscode

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

    Recently (July 2023) I worked on a Windows11 system that required a Microsoft component to be installed from within Visual Studio before it would work properly with all the OTHER software installed under Unity. I have no documentation on that process as I have only seen it once and it surprised me as well.
     
    RussellJernigan likes this.
  3. Azenomor

    Azenomor

    Joined:
    Apr 16, 2022
    Posts:
    2
    I tried all of these except deleting the .vsconfig and userprefs(because i couldnt figure out how) and the issue is still happening.
     
  4. Welfarecheck

    Welfarecheck

    Joined:
    Jun 14, 2020
    Posts:
    98
    Same thing here. Everything goes blue after 1-2 seconds. Tried all that stuff to no change.

    Now, for next level troubleshooting.

    Hit CTRL+ and CTRL- to zoom in/out a few times and IntelliSense works again.

    When opened
    upload_2023-9-6_11-21-4.png

    Zoom in/out a few times
    upload_2023-9-6_11-21-52.png
     
  5. RussellJernigan

    RussellJernigan

    Joined:
    Sep 8, 2023
    Posts:
    1
    Thank you, I will try it and I hope it works for me. If I face any issue, I will update you.
     
    Last edited: Sep 19, 2023