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.
Jake I am using Visual Studio Pro 2017, the solution you suggested is for VS Code I guess. Thanks for your time though.
Manish, please review my reply to your original post.
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.
Hi Jake,
I am using Visual Studio 15.8.6 now and have enabled Tools > Options > Python > Experimental > Use new style IntelliSense for environments.
Manish, please review my reply above your latest post.
Jake I tried to refresh the DB earlier but it takes forever to refresh and never gets completed.
Manish, refreshing the database time frame depends on how many packages you have loaded in an environment. This may take time.
Hi Jake,
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.