#VS code IntelliSense not working for some scripts

1 messages · Page 1 of 1 (latest)

heavy osprey
#

I am using unity 2022.3 with vs code c# devkit does anyone know why this happens

grave orchidBOT
#

How to deal with no VS intellisense problem:
If you have opened script and see Miscellaneous Files in place where should be name of your project (see screenshot below) it means that the file was not correctly loaded into project or you don't have any project loaded. Follow these steps to fix this:

  • Unity tools and Unity IDE preference - make sure to install the Unity Tools in your VS Installer and check the Unity preferences Edit - Preferences - External Tools and verify that the right External Script Editor is selected (you want Visual Studio there).
  • Reload project - View - Solution Explorer right click on project and click Unload project then right click on it again and load it again. If you don't see any project in Solution Explorer then move to the next step.
  • Regenerate solution files - Remove the .sln and .csproj files from root of your unity project (in File Explorer), they will be regenerated next time you open script from Unity.

How to deal with no VSCode intellisense problem:
Follow the guidelines on this page:
https://code.visualstudio.com/docs/other/unity

https://cdn.discordapp.com/attachments/545801512173961239/553525896045133826/unknown.png

heavy osprey
#

doesn't seem to work

languid plover
grave orchidBOT
#

Visual Studio Code is a lightweight text editor that supports extensions, letting it support a number of different languages.
Visual Studio is a full Integrated Development Environment (IDE), and as such offers better tools to equip developers with everything they need when writing apps and games.

Since Visual Studio Code is more lightweight, it lacks a lot of the useful features ideal for working with .NET, and so we recommend using Visual Studio when writing C# or working with Unity.

heavy osprey
languid plover
#

ohh i assumed it didnt work at all... yea idk then 😄

#

tried restarting vscode?

heavy osprey
#

yes

waxen snow
#

I faced the same problem. try re installing vscode and installing C# devkit, unity, .net runtime, and C# and .net

heavy osprey
#

I dragged and dropped a different assembly definition and it seems to work now

heavy osprey
#

wait how do I mark this as solved?

old dust
#

By adding the solved tag

heavy osprey
old dust
#

Click the 3 dots in the top right, and click edit tags