trying to get object to enable when space is pressed
i'm not much of a programmer. the debug doesn't show nor does the sprite enable

Go into Unity Editor -> Preferences -> External Tools -> Set Visual Studio (or JetBrains Rider) as your preferred editor.