Nodachisoft Nodachisoft logo, Katana Sword Icon
  
@Amaji✎ Update December-31-2021

Code completion(Intellisense) does not work in Unity+VSCode test code (Unity Testing Framework)

Code completion(Intellisense) does not work in Unity+VSCode test code (Unity Testing Framework)

Abstract

There was a case that code completion did not work in Unity+VSCode test code (Unity Testing Framework), so I wrote down how I fixed it.

This assumes that you have already configured Unity to open VSCode.

Please refer to the following article for setting up Unity + VSCode environment and test environment!

Symptom

IntelliSense is working properly in VSCode except for the test code, but not in the test code.

For example, when I type GameO in normal code, it completes as follows, but not in test code.

sample

Cause

When you create the assembly definition file (asmdef) and test script for the test code The xxxx.csproj file is created directly under the project.

It contains build information about the folder where the test code is stored. This file may be old or invalid.

Fix

Delete the csproj file directly under the project, and then reopen the project from Unity to recreate the csproj file. Delete the csproj file directly under the project, then reopen the project from Unity to rebuild the csproj file.

Open Project

In Unity Editor, Menu -> Assets -> Open C# Project to open the project.

And then, the required csproj file will be created again.

Reference

None

Page History

date modification
none
 
 
Message sent

Thank you for your message.

Something error has occured!

Sorry. The Error has occurred.We apologize for the inconvenience.Please try again in a few minutes or contact us via DM below.

Twitter:@NodachiSoft_eng
Name:
 
Replay To:
 
Message:
 
Back
Check the content!

Send the following information to us. If you are happy with your submission, please click "Send". If you want to modify it, please click "Back".

Name:
 
Reply To:
 
Message:
 
Enter a confirmation key to make sure that you are not operating from a Robot.
Confirmation Key is 95
Back
 / 
Go to Confirmation
Entry fields
Go to Confirmation

There are 5 articles that may be relevant!

System.Type.GetType returns null in Unity C# code

System.Type.GetType returns null in Unity C# code

#Unity#.net✎ 2022-1-11
System.Type.GetType returns null in Unity C# code
Table Of Contents
Code completion(Intellisense) does not work in Unity+VSCode test code (Unity Testing Framework)
Code completion(Intellisense) does not work in Unity+VSCode test code (Unity Testing Framework)
Abstract
Abstract
Symptom
Symptom
Cause
Cause
Fix
Fix
Reference
Reference
Page History
Page History
Nodachisoft © 2021