visual studio doesn 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