If you are new to SAPUI5 development, then code completion is the first thing you are going to look for. I assume most of you must have worked in Web Dynpro Java and, therefore, you expect you should get code completion feature when you press CTRL+SPACE. However, you will most probably be disappointed to know code completion feature isn’t working for you. You have seen videos and guides on SAPUI5 developments and this code completion feature seem to be working for others. Unfortunately, this feature is still required to be enabled manually for EVERY SAPUI5 project. That means, you will have to repeat the process I am going to describe below for every SAPUI5 project you develop. Let us see how to enable code completion feature.
Before you begin, please also take a look at our other posts on SAPUI5 below
- SAPUI5, HTML5, and future of SAP Front-end
- How to integrate UI Development toolkit for HTML5 (SAPUI5) with NWDS 7.3
- SAPUI5 eclipse plug-in & user documentation site
Step 1: Navigate to Project Properties
Right click on your SAPUI5 project and click on “Properties” as shown below
Step 2: Navigate Project Facets
From the Project Facets, check the check-box for “JavaServer Faces” as shown below
Step 3: Click on “Further configuration required”
This step will enable JSF capabilities for your SAPUI5 project. Check the check-box for SAP Component Library for JSF and then click on “OK” as shown below
Step 4: Add SAP UI Core Libraries to your SAPUI5 project
Step 5: Confirmation
At this point, you have enabled code completion feature for your SAPUI5 project. Now is the time to check whether this functionality is working correctly or not.