Hi all geeks,
I am trying to use Visual Studio 2017 (15.8.5) as an IDE for python (arcpy from arcgis pro 2.2). I have cloned the python environment and configured it in Visual Studio. When I try to write code after importing arcpy module, the intellisense doesn't show up and I can't autocomplete the code. I am attaching the screenshot.
Greetings Manish! What version of Visual Studio 2017 are you using. Microsoft documentation states :
You may want to look into updating your packages. This also is explained in the link above.
In Visual Studio Pro 2017 go to Tools > Python > Python Environments (this opens the window) select the python 2.7 (64 or 32 bit) and check to see if you have red exclamation points. If you do click the Refresh DB (blue circle arrow). This should update your python database and allow you to use IntelliSense.
I have now update the visual studio to 15.9.4 and ArcGIS Pro 2.2.4 and cloned the python environment, but even now I am not able to get the arcpy intellisense to work in visual studio. I have enabled "Use new style intellisense for environments" option in visual studio Tools->Option->Python->Experimental. Help is greatly appreciated.