The WebApp Wizard Web development made magical


JavaScript Content Assist in Zend Studio 8

Ever been wondering how to get the most out of Zend Studio for JavaScript? I had. With Zend Studio 8, JavaScript tends to be a bit more on the front of the scene. So let's take advantage of this by configuring Content Assist for our favorite JavaScript libraries.

Well, Zend Studio 8 now natively supports jQuery. That's good. But what if, for example, I want to add support for OpenLayers? That's really simple, and it is worth it. Tired of checking the online documentation every 5 minutes when you have to create a new layer? That is for you.

Right-click on your project, the go to properties, then to JavaScript => Include Path.

Then click "Add  JavaScript Library..." and select "User Library".

Click "Next", then "Configure User Libraries..."

In the User Libraries dialog, click "New..."

In the New User Library Dialog, type the name of your new library. Here, OpenLayers. The name doesn't really matter, it is just a matter of clarity for you.

You can see your new library appear in the list. Click "Add .js file..."

Then browse to the OpenLayers.js file and add it, then click "OK" in the User Libraries dialog.

There you go, you just added OpenLayers to your JS Include Path:

You can now click "OK" to close this dialog, and you're ready to go. In my case, Zend Studio needed a restart in order to make the changes effective.

And now, when I start to type "OpenLayers.L"...


There is nothing difficult or really new about this, but it is so useful that I wanted to share.

Comments (3) Trackbacks (1)
  1. What you share is good ,but your picture in this article have missed.
    Could you recover them?

  2. Lo que necesitamos ya antes de empezar es un Balde de
    Hierro y la habilidad para cavar en la tierra.

  3. Esta obra es considerada por muchos, erroneamente, como una novela para ninos, pero quien haya leido este libro siendo
    pequeno y releido de adulto, se habrá dado
    cuenta de que gran parte de la trama habia pasado desapercibida ebooks gratis para el.
    Los juegos del lenguaje y la logica de la novela, son pura filosofia
    y las situaciones inverosimiles a las que A.

    se enfrenta, invitan a meditar y a desarrollar la creatividad y la imaginacion.

Leave a comment


You can use basic HTML to enlighten your comments. If you want to post some code, please use the <pre> tag. You can also use syntax coloring by adding class="syntax [language]". <pre class="syntax js"> will color your code as if it was JS code for instance.