How do you create a new file? If you start a new file in Unity and open it from there it will open properly. But if you make a new C# template class in Visual Studio it requires extra configuration.
If you open a new file from Unity Editor and Visual Studio IntelliSense doesn’t work then failed project preferences. I had a Unity project that each time I opened it the preferences were reset.