简体   繁体   中英

Visual Studio intellisense/autocorrect works for C# terms, but not for Unity

When I write code in Visual Studio, it normally highlights and suggests prompts such as string , void , method names and such.

However, it doesn't work for Unity terms such as Vector3 or Time . I tried updating both and also changing the external tools settings, but it doesn't seem to work.

What am I missing? Thanks in advance.

You can try these steps:

Step 1: Close Visual Studio

Step 2: In Unity, go to Edit < Preferences < External Tools (left part of the Window)

Step 3: In External Tools go to the part that says External Script Editor (this should be on which ever Visual Studio editor you are using (for me it defaulted to "Open by File Extension"

Step 4: Make sure Generate all csproj files is checked, and Editor Attaching is checked

Step 5: Open the C# script you were trying to open earlier

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM