Show TOC

JavaScript Code CompletionLocate this document in the navigation structure

When using the SAPUI5 tools, code completion is enabled automatically, without the tools, you need to enable it.

Automatic Code Completion for SAPUI5 Application Projects

The Eclipse JavaScript Development Tools (JSDT) provide an editor which parses scripts and offers a code completion functionality.

SAPUI5 ApplTools Code Completion

Code Completion for SAPUI5 Views

For JavaScript views, code completion is available.

SAPUI5 ApplTools MVC and Code Completion

Enabling Code Completion for Other Projects

If you are not working with a SAPUI5 application project, you can perform the following preparing steps to add the required SAPUI5 core libraries to the JavaScript include path.

Ensure that the JavaScript Facet is set and proceed as follows:

  1. Open Start of the navigation path Project Next navigation step Properties End of the navigation path.
  2. Select Project Facets.
  3. If you do not see the list of all possible facets, click the link: Convert to facet form and wait a second to see all available facets.
  4. Mark JavaScript Facet on the same view.
  5. Leave the project properties.

Your project now has the JavaScript facet. Now you can add the SAPUI5 core libraries. Proceed as follows:

  • Open Start of the navigation path Project Next navigation step Properties End of the navigation path.
  • Choose Start of the navigation path JavaScript Next navigation step Include Path End of the navigation path.
  • Select Add JavaScript Library….
  • Select SAPUI5.

You should now be able to see the following JavaScript resources in your project:

SAPUI5 ApplTools Code Completion Libraries