Autocompletion not working in Visual studio

2019-01-01 03:55发布

I have a Little problem with scripts. When I'm writing C# scripts for Unity with Visual studio it seems like I`m working in notepad, there are no autocompletion (correct?) and I must write it very slowly.

Please, watch the video. At start is the normal situation (from tutorial), second part shows my problem.

Video with problem

For example, the transform class does not show suggestion or autocomplete.

Image with Problem:

enter image description here

Unity version: 5.5.2f1
Visual studio 2015
Visual Studio Tools for Unity is installed

14条回答
千与千寻千般痛.
2楼-- · 2019-01-01 04:28
  1. Select project in Visual Studio
  2. Click "Refresh" button

enter image description here

查看更多
浮光初槿花落
3楼-- · 2019-01-01 04:28

For Windows or macOS:

Download/Install the Visual Studio IDE (with Unity Tools)

When installing, make sure you include installation of

Game development with Unity

enter image description here

Then using Unity (you can double click one of your C# files), open a new C# project and the Visual Studio IDE should open with your new project structure.

enter image description here

From there, you should be able to see what you are looking for.

For example:

enter image description here

enter image description here

For Linux (suggestion):

Try Monodevelop - Additional Information, it provides code completion/hints.

查看更多
登录 后发表回答