I use visual studio with Unity. The autocomplete function that visual studio has built in, in conjunction with Tools for Unity, makes the autocomplete, especially with method headers, way too aggressive.
For instance, when I type void OnCollisionEnter(
I am given
void OnCollisionEnter(Collision collision) { }()
This is a problem because I now have to remove the parenthesis and rename the parameter, when before I would not have to do either. It's a small thing, but it is extremely aggravating. Is there any way to fix this?
Install Visual Studio and UnitySelect Install, or Modify if Visual Studio is already installed. Select the Workloads tab, then select the Game development with Unity workload. If Unity isn't already installed, select Unity Hub under Optional. Select Modify or Install to complete the installation.
Check that Visual Studio is set as your external script editor in Unity using Edit / Preferences / External Tools . Depending on your Unity version: Check that the Visual Studio plugin is installed in Unity. Help / About should display a message like Microsoft Visual Studio Tools for Unity is enabled at the bottom.
The VS Tools for Unity (VSTU) provide completion for Unity Messages (special methods that are called from the Unity engine, such as OnCollisionEnter).
Good news, the issue you describe is an issue that we have identified and that we're working on fixing. If it's extremely aggravating, in the meantime, you can either:
Disclaimer: I'm the Dev Lead for the Tools for Unity at Microsoft.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With