Edit online

Content Completion in JavaScript Documents

When you edit a JavaScript document, the Content Completion Assistant presents you a list of the elements you can insert at the cursor position. It can be manually activated with the Ctrl + Space shortcut.

For an enhanced assistance, JQuery methods are also presented. The following icons decorate the elements in the content completion list of proposals depending on their type:
  • - function
  • - variable
  • - object
  • - property
  • - method
Note: These icons decorate both the elements from the content completion list of proposals and from the Outline view.
Figure 1. JavaScript Content Completion Assistant
The Content Completion Assistant collects:
  • Method names from the current file and from the library files.
  • Functions and variables defined in the current file.
If you edit the content of a function, the content completion list of proposals contains all the local variables defined in the current function, or in the functions that contain the current one.