This video shows
How To Fix Visual Studio Unity Auto Complete (Visual Studio’s IntelliSense (auto-complete) in Unity)
Working Solution 2022
To fix your unity visual studio autocomplete not working problem
You need to go to preferences in unity editor and select visual studio
Check all the boxes.
Re-open visual studio.