I recently started developing for Unity / C# using Visual Studio Code with the C# extension. This extension provides Intellisense which is great but I am noticing the Intellisense suggestion box contains suggestions for an older API as well as deprecated methods among the other valid suggestions.
e.g. suggesting the rigidbody
property on a script when the new API uses GetComponent
or the deprecated static DestroyObject
method suggestion when accessing the MonoBehaviour
class.
Is there something I am missing with my configuration that would fix Intellisense? I want deprecated/obsolete methods either removed or marked as such and suggestions for the old API to not even be shown (I’m looking at you this.rigidbody
).
Also out of curiosity what is the source Intellisense uses to populate the suggestion box?