Visual Sudio automatically adds using System.Diagnostics;

For some reason when I type
“Debug.” the editor automatically adds “using System.Diagnostics” in the Header (is that what it’s called?)

This gives me the following error:
“Assets\NumberWizard.cs(11,9): error CS0104: ‘Debug’ is an ambiguous reference between ‘UnityEngine.Debug’ and ‘System.Diagnostics.Debug’”

I can just delete the line but it comes back every time i type “Debug.” again.

Is there a way to turn off this feature?

Update: I found a solution. Maybe it helps someone else. Under Options / Text-Editor / C# / IntelliSense turn of the lowest tick Box (roughly something like: Do not show elements from Namespaces that are not imported)
(Screenshot in German, most of the names should be similar in english)

Thanks a lot for sharing your solution, Philipp! :slight_smile:


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms