Unity Scripts edited in Visual studio don't provide autocomplete
Unity Scripts edited in Visual studio don't provide autocomplete
Unity Scripts edited in Visual studio don't provide autocomplete
Re: Unity Scripts edited in Visual studio don't provide autocomplete
There is no auto-completion because the script says "*Miscellaneous Files*" instead of the of the name of the Project. Take a look at the image below that came from the video in your question:
[](https://i.sstatic.net/FnZMa.png)
The "*Miscellaneous Files*" message can happen for many reasons:
-
It can happen when you open your Unity C# file from another folder instead of opening it from Unity Editor.
-
This can also happen because Unity crashed while Visual Studio is still open therefore corrupting some files.
-
It can happen because Unity was closed then re-opened but is no longer connected to Visual Studio. When Visual Studio is opened you get "*Miscellaneous Files*" and no auto-completion.
-
This can happen when *Visual Studio Tools for unity* is not installed.
-
When you create a script from Unity then quickly open it before Unity finish processing it or before the round icon animation stuff finish animating.
*Most of the times, restarting Unity and Visual Studio should fix this.*
I can't tell which one is causing the problem but I will cover the most likely solution to fix this.
**Fix Part 1**:
-
Download and Install *Visual Studio Tools for unity* from [this](https://marketplace.visualstudio.com/items?itemName=SebastienLebreton.VisualStudio2015ToolsforUnity) link. Do this while Unity and Visual Studio are both closed.
-
From Unity Editor, go to *Edit* → *Preferences*... → *External Tools*. On the *External Script Editor* drop down menu, change that to *Visual Studio 2015*.
[](https://i.sstatic.net/I6mZ8.gif)
**Fix Part 2**:
If newly created C# files are coming up as *Miscellaneous* then follow the instruction below:
-
From Visual Studio, go to *Tools* → *Options...* → *Tools for Unity* → *Miscellaneous*. Under *Show connectivity icon*, set it to `true` then restart Visual Studio.
[](https://i.sstatic.net/cQ5qZ.gif)
-
When you re-start, connection icon should now be available in Visual Studio. Click it then choose the Unity instance t
*(Réponse tronquée)*
[](https://i.sstatic.net/FnZMa.png)
The "*Miscellaneous Files*" message can happen for many reasons:
-
It can happen when you open your Unity C# file from another folder instead of opening it from Unity Editor.
-
This can also happen because Unity crashed while Visual Studio is still open therefore corrupting some files.
-
It can happen because Unity was closed then re-opened but is no longer connected to Visual Studio. When Visual Studio is opened you get "*Miscellaneous Files*" and no auto-completion.
-
This can happen when *Visual Studio Tools for unity* is not installed.
-
When you create a script from Unity then quickly open it before Unity finish processing it or before the round icon animation stuff finish animating.
*Most of the times, restarting Unity and Visual Studio should fix this.*
I can't tell which one is causing the problem but I will cover the most likely solution to fix this.
**Fix Part 1**:
-
Download and Install *Visual Studio Tools for unity* from [this](https://marketplace.visualstudio.com/items?itemName=SebastienLebreton.VisualStudio2015ToolsforUnity) link. Do this while Unity and Visual Studio are both closed.
-
From Unity Editor, go to *Edit* → *Preferences*... → *External Tools*. On the *External Script Editor* drop down menu, change that to *Visual Studio 2015*.
[](https://i.sstatic.net/I6mZ8.gif)
**Fix Part 2**:
If newly created C# files are coming up as *Miscellaneous* then follow the instruction below:
-
From Visual Studio, go to *Tools* → *Options...* → *Tools for Unity* → *Miscellaneous*. Under *Show connectivity icon*, set it to `true` then restart Visual Studio.
[](https://i.sstatic.net/cQ5qZ.gif)
-
When you re-start, connection icon should now be available in Visual Studio. Click it then choose the Unity instance t
*(Réponse tronquée)*