Skip to Content

To help you understand code completion in SAP Web IDE, we’ve put together a series of videos, each on a different feature — like code completion in JavaScript files or XML files, or how to get autohints, an intelligent suggestion that automatically appears without having to press Control-Space.

There are videos on code completion for embedded types, on code snippets that you can add to your code with all the properties and default values already filled in, and code completion with suggestions based on objects you’ve defined in other JavaScript files.

Here’s a single 4-minute video that goes through all the features.

There are also shorter individual videos on each of the features outlined in the main video. Its the same material, but for those who are interested only in one or two specific features.

Check out our SAP Web IDE channel on YouTube. We also have a playlist just for learning how to work in the editors, including using the code completion.

To report this post you need to login first.

6 Comments

You must be Logged on to comment or reply to a post.

  1. Christopher Solomon

    Thanks for the very useful video.

    One question….for code completion or suggestions….such as the Javascript ones you show, I do not get the same suggestions or even variety (ie. method signature AND option for snippet/pattern). Any idea why? Here is what is going on….

    Untitled.png

    (0) 
    1. Yuval Morad

      Hi

      you probably use AMD pattern

      There you should get any control as in you define statement.

      Global in AMD should not be used thus the snippet is not proposed.

      if you take and empty js file (non AMD..)with the statement

      var pop = new sap.m.Popo

      you should get the same proposal

      Regards

      Yuval

      (0) 
  2. Muhammad Raheel

    Hello,

    Thanks for the video. I’ve enabled Code Completion from settings.

    but i didn’t get any response in xml file. like below:

     

    and in JS file i get something like which is not as exptected:

    can you please help me to sort out the issue.

     

    Thanks

     

    (0) 
  3. Yuval Morad

    You always get code assist of Javascript object.

    In Javascript AMD pattern you should use the parameters defined and not static types which are not declared in AMD JS file.

    You will get code assist proposals for static properties of the parameter, and if you create instance of the parameter you will get the instance methods

    Regards

    Yuval

     

    (0) 

Leave a Reply