visual studio 2019 does not have unity autocomplete code example
Example: visual studio not autocompleting unity
Go to Edit>preferences>External tools
set external script editor to visual studio
Go to Edit>preferences>External tools
set external script editor to visual studio