Add-on components that enhance and customize the Visual Studio integrated development environment
Thank you for reaching out.
This usually happens because VS Code disables extensions in untrusted folders, or Unity isn’t generating the right project files. Follow these steps:
- Trust the Workspace
VS Code blocks IntelliSense if the folder isn’t trusted.
- Open the project in VS Code.
- If you see a banner about trust, click Trust or Trust the Authors.
- Or:
Ctrl+Shift+P→ Workspace: Manage Workspace Trust → mark your Unity project as trusted.
- Use the Correct Unity Extension
Unity deprecated the old VS Code Editor package.
- In Unity: open Window → Package Manager.
- Install Visual Studio Editor package (v2.0.20 or newer).
- Remove the old Visual Studio Code Editor package if it’s still there.
- Set VS Code as External Editor in Unity
- Go to Edit → Preferences → External Tools.
- Set Visual Studio Code as the external script editor.
- Tick Regenerate project files and click the button.
- Install Required Extensions & SDKs
- In VS Code, install C# (or C# Dev Kit) by Microsoft.
- Make sure .NET SDK is installed (check by running
dotnet --versionin a terminal). - If your Unity project targets .NET Framework 4.7.1, install the Developer Pack for it.
- Clear Old Cache & Regenerate Project Files
If IntelliSense is still broken:
Close Unity and VS Code.
Delete these folders from your project:
-
.vs/-
Library/-
obj/
-
-
- Restart VS Code and let OmniSharp / C# Dev Kit reload.
- Fix Broken Project Recognition
If VS Code shows “Miscellaneous Files” instead of your project name:
- In Unity: Assets → Open C# Project.
- This forces Unity to rebuild the solution files correctly.
Following these steps resolves most cases where IntelliSense doesn’t work on external Unity projects. If it’s still failing, check VS Code → Output → OmniSharp for error details — they’ll point to the exact missing component.
Let me know if you need any further help with this. We'll be happy to assist.
If you find this helpful, please mark this as answered.