If anyone is looking for how to disable this annoying feature in the newer versions of Visual Studio 2022, do the following:
Go to Tools -> Options -> IntelliCode -> General.
In that window, simply remove the check mark from "Show inline completions" and then press OK.
Thats it.