简体   繁体   English

如何使用Aptana的代码帮助来使用Google Maps API v3?

[英]How can I get Aptana's code assist to work with Google Maps API v3?

There's a Google Maps API v3 Visual Studio Intellisense Helper , which presumably works great for Visual Studio, but Aptana (based on Eclipse) uses a different JavaScript documentation format - ScriptDoc (.sdoc files). 有一个Google Maps API v3 Visual Studio Intellisense Helper ,它可能适用于Visual Studio,但Aptana(基于Eclipse)使用不同的JavaScript文档格式 - ScriptDoc (.sdoc文件)。 ScriptDoc is also the name of a VS utility to convert JS files with Intellisense comments into XML, just to confuse things. ScriptDoc也是VS实用程序的名称,用于将带有Intellisense注释的JS文件转换为XML,只是为了混淆事物。

I've tried adding the Intellisense files as file / global references in Aptana, but all this gives is completion for the word google and no completion or documentation in the google namespace. 我已经尝试在Aptana中添加Intellisense文件作为文件/全局引用,但所有这些都是google完成,谷歌命名空间中没有完成或文档。

Possible solutions: 可能的解决方案:

  • Find someone who's already done this for Aptana. 找一个已经为Aptana做过这件事的人。 I've Google'd quite a bit already but couldn't find anything. 我已经谷歌了很多但找不到任何东西。
  • Convert the Visual Studio Intellisense Helper into a format Aptana can understand. 将Visual Studio Intellisense Helper转换为Aptana可以理解的格式。
  • Scrape the API page and convert it into a format Aptana can understand. 抓取API页面并将其转换为Aptana可以理解的格式。

你不能把JS文件放在Project的引用中吗?

I'm using Aptana and ScriptDoc is the worst decision they made and they seem to be attached to it, it's the main reason I have considered switching to Eclipse. 我正在使用Aptana和ScriptDoc是他们做出的最糟糕的决定,他们似乎与之相关,这是我考虑转向Eclipse的主要原因。 I've been thinking in using jsdoc-toolkit to generate .sdoc files from jsdoc notations (using some type of templates), but to use .sdoc files you must insert @id tags all over your code, and that discouraged me. 我一直在考虑使用jsdoc-toolkit从jsdoc表示法生成.sdoc文件(使用某种类型的模板),但要使用.sdoc文件,你必须在代码中插入@id标签,这使我气馁。

This helper is for Visual Studio. 这个助手适用于Visual Studio。 I don't think Aptana can work with vsdoc.js files 我不认为Aptana可以使用vsdoc.js文件

Aptana Plugin for Eclipse and jQuery code assist 适用于Eclipse的Aptana插件和jQuery代码辅助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM