36

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). ScriptDoc is also the name of a VS utility to convert JS files with Intellisense comments into XML, just to confuse things.

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.

Possible solutions:

  • Find someone who's already done this for 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.
  • Scrape the API page and convert it into a format Aptana can understand.
dave1010
  • 15,135
  • 7
  • 67
  • 64

4 Answers4

1

I found this and I'm checking if it helps http://code.google.com/p/closure-compiler/source/browse/#svn%2Ftrunk%2Fcontrib%2Fexterns%2Fmaps

1

Can't you put the JS file in the Project's references ?

3rgo
  • 3,115
  • 7
  • 31
  • 44
  • 1
    I've tried http://maps.gstatic.com/intl/en_gb/mapfiles/api-3/1/6/main.js (and a few others) but it's not coming back with anything. Even if this worked for code completion (which would be nice), it won't have any of the docs. – dave1010 Jul 13 '10 at 13:45
1

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. 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.

Benja
  • 4,099
  • 1
  • 30
  • 31
  • Cannot agree more to your comment. http://swik.net/Eclipse/del.icio.us%2Ftag%2Feclipse/Documenting+Your+Code+Using+ScriptDoc+%2F+Using+Code+Assist+%2F+FAQs+-+Aptana+Studio+Support/d6d5r – Cninroh May 11 '12 at 14:45
1

This helper is for Visual Studio. I don't think Aptana can work with vsdoc.js files

Aptana Plugin for Eclipse and jQuery code assist

Community
  • 1
  • 1
Hristo
  • 859
  • 1
  • 8
  • 14