开发如果没有智能提示,可想而知是一件多举痛苦的事情,好在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. ios9.3.3 h5的js代码全部失效

    做微信公众号页面时,ios9.3.3 h5的js代码全部失效描述: 机型iphone6 plus,ios9.3.3js代码全部失效,刚开始还以为是ios和jq兼容问题, 后来发现是es6语法不能读,导 ...

  2. spring json 返回中文乱码

    如前台显示的json数据中的中文为???,则可尝试以下方法. 方法一(推荐):在@RequestMapping中添加  produces={"text/html;charset=UTF-8; ...

  3. HashMap和HashSet的使用,区别。集合,Array、Collection(List/Set/Queue)、Map

    HashMap和HashSet的区别 HashMap和HashSet的区别是Java面试中最常被问到的问题.如果没有涉及到Collection框架以及多线程的面试,可以说是不完整.而Collectio ...

  4. 2018-8-10-win10-uwp-绘图--Line-控件使用

    title author date CreateTime categories win10 uwp 绘图 Line 控件使用 lindexi 2018-08-10 19:16:51 +0800 201 ...

  5. Callable Objects

    We learned in 7.11 that there are "array-like" objects that are not true arrays but can be ...

  6. linux 读者/写者旗标

    旗标为所有调用者进行互斥, 不管每个线程可能想做什么. 然而, 很多任务分为 2 种清 楚的类型: 只需要读取被保护的数据结构的类型, 和必须做改变的类型. 允许多个并发读 者常常是可能的, 只要没有 ...

  7. linux llseek 实现

    llseek 方法实现了 lseek 和 llseek 系统调用. 我们已经说了如果 llseek 方法从设备 的操作中缺失, 内核中的缺省的实现进行移位通过修改 filp->f_pos, 这是 ...

  8. I/O 寄存器和常规内存

    不管硬件寄存器和内存之间的强相似性, 存取 I/O 寄存器的程序员必须小心避免被 CPU(或者编译器)优化所戏弄, 它可能修改希望的 I/O 行为. I/O 寄存器和 RAM 的主要不同是 I/O 操 ...

  9. Linux 内核存取 I/O 和内存空间

    一个 PCI 设备实现直至 6 个 I/O 地址区. 每个区由要么内存要么 I/O 区组成. 大部分 设备实现它们的 I/O 寄存器在内存区中, 因为通常它是一个完善的方法(如同在" I/O ...

  10. CodeForces 1213F (强联通分量分解+拓扑排序)

    传送门 •题意 给你两个数组 p,q ,分别存放 1~n 的某个全排列: 让你根据这两个数组构造一个字符串 S,要求: (1)$\forall i \in [1,n-1],S_{pi}\leq S _ ...