开发如果没有智能提示,可想而知是一件多举痛苦的事情,好在Esri为Visual Studio 2010、Aptana3提供了一个插件,这样就使我们在使用ArcGIS API for Javascrip的时候获得了方便,可以大大节约开发时间 。 这个插件本质就是javascript文件,下载地址 :http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#api_codeassist

  需要注意的是在Visual Studio 2010中dojo并不能智能提示,而Aptana和Visual Studio 2012 中对dojo则可以做到智能提示,如果对智能提示要求高的,可以采用Aptana和Visual Studio 2012作为开发环境。

Code Assist Plugins

A code assist provides information about the ArcGIS JavaScript API classes and their properties and methods from within an IDE. Starting from version 3.0, a VSDoc code assist is available for Microsoft Visual Studio 2010 and 2012RC. The code assist was created by utilizing the JavaScript XML Intellisense feature in Visual Studio, which offers dynamic class lists and tool tips when users are coding in Visual Studio or development enviroments that support VSDOC like Aptana.

Code assist offers the following features:

  • Auto-completion of source code
  • Summary of classes, constructors, properties, methods and globals
  • Parameter hits for constructors and methods

Visual Studio Installation Instructions

The VSDoc file is a JavaScript file (.js). You can enable the VSDoc in Visual Studio by following the steps below:

  1. Download the zip file that contains the VSDoc file for the version of the ArcGIS API for JavaScript you are using.
  2. If working in an HTML file, add a script tag to add a reference to the code assist   
    <scripttype='text/javascript'src='path_to_vsdoc.js'></script>
  3. If working in a JavaScript file, add a reference directive to the VSDoc file:   
          /// <reference path="~/Scripts/esri-jsapi-vsdoc.js" />
        

For more information about using VSDoc files with Visual Studio, refer to Microsoft's JavaScript Intellisense MSDN article.
Note: Currently this VSDoc file is only supported with Visual Studio 2010 and Visual Studio 2012 RC. Visual Studio 2012 supports code assist for classes with multiple constructors but Visual Studio 2010 does not. So if you are using Visual Studio 2012 download the VS2012 version of the code assist.

Aptana 3 Installation Instructions

  1. Download the zip file that contains the VSDoc file for the version of the ArcGIS API for JavaScript you are using.
  2. Drag the VSDoc file into your Aptana project.

Downloads

ArcGIS for JavaScript 开发智能提示的更多相关文章

  1. Visual Studio 2013开启JavaScript的智能提示功能

    在前一次的发布的时候,我们共享了Visual Studio 2013中Windows Azure移动服务的集成和功能.其中包含了移动服务表脚本的编辑能力的介绍.这一次的发布,我们将描述在Visual ...

  2. javascript 的智能提示intellisence用法

    转载自:http://blog.csdn.net/applewangpai/article/details/23517087   引用指令reference Visual Studio 2012支持的 ...

  3. Eclipse添加Jquery和javascript的智能提示

    使用Eclipse写Jquery和Javascript代码的时候,是没有智能提示的.我们可以使用一个插件来解决这个问题. 安装完成后,Eclipse会自动重启.重启之后,我们在项目上右键,   根据自 ...

  4. 在使用VS过程中关于Javascript没有智能提示的解决方法

    问题:编写基本Script代码没有问题,但是在编写DOM代码时候没有智能提示.也就是在编写一般javascript代码时候没有问题,但是要写DOM代码的时候发现没有智能提示,如document等都需要 ...

  5. vs2015 不支持javascript的智能提示高亮

    有些人安装了vs2015后发现居然不支持javascrpt的高亮功能,连工具-选项-文本编辑器里面的javascript也没有了,楼主也碰到这么个情况了,估计是有与装了多个版本的原因,楼主电脑安装了V ...

  6. DevExpress的JavaScript脚本智能提示

    http://www.cnblogs.com/zhaozhan/archive/2011/06/08/2075767.html ASPxScriptIntelliSense.js在安装目录下的Comp ...

  7. Visual studio 2017 中的Javascript智能提示与调试

    1.智能提示 对于JS文件中的API,你若需要让那个JS文件中的方法能够在你写的那个JS文件中能够智能显示的话,直接把它拉进你的JS文件中就好了. 举个例子:你想 在你正在写的a.js文件中引用b.j ...

  8. Visual Studio 2012设置Jquery/Javascript智能提示

    Visual Studio 2012设置Jquery/Javascript智能提示 在Visual Studio 2008 Visual Studio 2010中微软已经开始支持jquery/java ...

  9. Visual Studio Code 使用 Typings 实现智能提示功能

    前言 我们知道在IDE中代码的智能提示几乎都是标配,虽然一些文本编辑器也有一些简单的提示,但这是通过代码片段提供的.功能上远不能和IDE相比.不过最近兴起的文本编辑器的新锐 Visual Studio ...

随机推荐

  1. [ Laravel 5.1 文档 ] 服务 —— 帮助函数

    http://laravelacademy.org/post/205.html 1.简介 Laravel自带了一系列PHP帮助函数,很多被框架自身使用,然而,如果你觉得方便的话也可以在应用中随心所欲的 ...

  2. tensorflow -gpu安装,史上最新最简单的途径(不用自己装cuda,cdnn)

    tensorflow -gpu安装首先,安装Anoconda1. 官网下载点我: 2.安装 点击 python 3.6 version自动下载x64版,下载好之后,然后安装. 如图,打上勾之后,一路n ...

  3. 模板——BigInteger

    #include <iostream> #include <cstring> #include <string> #include <vector> # ...

  4. 2018-4-29-C#-将dll打包到程序中

    title author date CreateTime categories C# 将dll打包到程序中 lindexi 2018-04-29 09:43:22 +0800 2018-2-13 17 ...

  5. 【ts】 VSCode自动编译TypeScript终端报错

    一.点击终端--运行任务--选择tsc:监视 - tsconfig.json后,终端报出了如下错误:error TS5058: The specified path does not exist 在网 ...

  6. element-ui tree 根据不同叶子节点设置是否显示复选框

    公司业务要求不同根节点配置显示与否复选框,官方文档没有这样的配置,所以想到了修改element-ui源码. 1.这里将“node_modules\element-ui\packages”下的tree文 ...

  7. 2018-8-10-C#-使用Emit深克隆

    title author date CreateTime categories C# 使用Emit深克隆 lindexi 2018-08-10 19:16:52 +0800 2018-2-13 17: ...

  8. redisUtil

    package com.cinc.ecmp.utils; import org.springframework.beans.factory.annotation.Autowired; import o ...

  9. dotnet core 用值初始化整个数组

    如果想要创建一个数组,在这个数组初始化一个值,有多少不同的方法? 本文告诉大家三个不同的方法初始化 在开发中,会不会用很多的时间在写下面的代码 var prime = new bool[1000]; ...

  10. HDU - 3671 Boonie and Clyde (图的割点)

    As two icons of the Great Depression, Bonnie and Clyde represent the ultimate criminal couple. Stori ...