Enabling JavaScript Support in PHP Projects

Enabling JavaScript support in PHP projects allows JavaScript libraries and external files to be referenced by the project and makes the elements within these resources available for operations such as Content Assist and Refactoring.

Note:

Once JavaScript support has been enabled for a project, you should set the project's JavaScript Build Path in order for the required resources to be made available to the project.

These procedures describe how to add support to existing projects, or disable JavaScript support.

Enabling JavaScript Support for Existing PHP Projects

JavaScript libraries and features can be added to existing PHP projects in your workspace.

 

 

Instructions on how to complete a procedure

To enable JavaScript Support for existing PHP Projects:

In Project Explorer view, right-click the project for which you want to enable JavaScript support and select Configure | Convert to JavaScript Project...

JavaScript support will be enabled for the project.

Note:

You must now set the project's JavaScript Build Path in order for the required JavaScript libraries and files to be accessed by the project.

Removing JavaScript Support

If you are not using JavaScript libraries or files in your project, you can remove JavaScript support for that project.

 

 

Instructions on how to complete a procedure

To remove JavaScript Support for existing PHP Projects:

In Project Explorer view, right-click the project for which you want to enable JavaScript support and select Configure | Remove JavaScript Support.

JavaScript support will be removed from the project and no JavaScript libraries or external files will be available to the project.