I have searched the GeoNet forums and StackOverFlow and others on my topic. Although the same question can be found on here and elsewhere I have yet to find a definitive solution that will resolve the problem. I am using VS Code to develop with ArcGIS Python API, such as arcpy and arcgis. I have VS Code setup to use the default ArcGIS Python 3 environment. But when I import arcpy VS Code will not autocomplete the arcpy modules.
I read through the VS Code docs on adding "extra paths" to settings.json file and to the Workspace settings file but I still cannot get the autocomplete to function. And the other annoyance is that VS Code will inform me of a warning that arcpy.da is not recognized even though the script will run in debug mode.
If anyone from Esri (such as Rohit Singh ) can post a detailed blog post on this subject, specifically configuring VS Code (not Visual Studio, but VS Code) to develop python scripts with arcpy and the ArcGIS Python API that would be really appreciated!