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!
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.
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.
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.
In Unity Editor,-> -> to open the project.
And then, the required csproj file will be created again.
Thank you for your message.
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_engName:
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: