Search Unity

Question How to get visual studio intellisense

Discussion in 'Code Editors & IDEs' started by darthcoder567, Mar 1, 2023.

  1. darthcoder567

    darthcoder567

    Joined:
    Aug 20, 2022
    Posts:
    45
    I am trying to enable the visual intellisense but it isn't working I have watched a ton of tutorials but nothing changes I have set visual studio as my external script editor I have modified it to work with coding in unity what else should I do?
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,445
    have you added visual studio package? from package manager.

    try that "regenerate" button in preferences/external also.
     
  3. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    7,934
    You will need to install Unity integration on Visual Studio's side too. Though this should happen automatically if Visual Studio is installed via Unity Hub.
     
  4. darthcoder567

    darthcoder567

    Joined:
    Aug 20, 2022
    Posts:
    45
    I have done both of those but it still wont work
     
  5. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
    Here's a few more ways to wiggle the wires and bang the cage bars:

    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
     
  6. darthcoder567

    darthcoder567

    Joined:
    Aug 20, 2022
    Posts:
    45
    It finally worked! Thanks!:)
     
    Kurt-Dekker likes this.
  7. friend-code

    friend-code

    Joined:
    Jan 1, 2024
    Posts:
    1
    But what did you do to get it to work :(
     
    tm052203 likes this.