Is there a way to enable the IntelliSense in VS2012/2010 for the ESRI modules in AMD?

947
3
03-11-2014 03:31 PM
weiliang
New Contributor II
Hi,

I am new to JavaScript and ESRI JavaScript API. I am trying to enable the IntelliSense for the ESRI modules by using AMD, but it seems doesn't work. I have put the "jsapi_vsdoc12_v38.js" file in the VS solution, and reference with " <script type="text/javascript" src="Scripts/jsapi_vsdoc12_v38.js"></script>". But it seems that it doesn't work in the AMD. Is there a way I can enable it? Without IntelliSense, it will be too hard to coding.

Thanks,

Wei
0 Kudos
3 Replies
Ravichandran_M_Kaushika
Occasional Contributor
Please see my reply on Sep 04th:  it works like a piece of cake after implementing the steps.

http://forums.arcgis.com/threads/91035-What-IDEs-are-people-using-for-JavaScript-development

After that I have un-installed aptana studio.

regards
ravic
0 Kudos
KenBuja
MVP Esteemed Contributor
However, currently I don't think the code assist will work with AMD. This is noted in the code assist page.
Note: these plug-ins do not yet support code that loads JS API  modules using AMD due to the nature of how modules are aliased once  loaded.
0 Kudos
DasaPaddock
Esri Regular Contributor
An alternative option is to use the TypeScript definition file that's available at:
https://github.com/Esri/jsapi-resources/tree/master/typescript
0 Kudos