Content assist

Content assist proposes coding alternatives based on the objects available in the current context.

To adjust content assist preferences, click File > Preferences and expand JavaScript > Editor > Content Assist.

Advanced classes and methods

By default content assist lists the most common global variables, classes, methods, and fields. To get a complete list, check Show advanced JavaScript in the script editor.

Code completion by request

To launch content assist, press CTRL+SPACE on your keyboard.

Content assist provides a list of global variables, classes, methods, and fields for the current context. You can select an entry (by double-clicking it or pressing ENTER) or you can start typing a method name. If you start typing, the list narrows and you can select an entry at any time.

When you select an entry (by double-clicking it or pressing ENTER), the editor inserts it.

Code completion with a period

When you type a period and delay for a set number of milliseconds, a list of possible methods appears. You can make a selection as described previously.

Code completion with a character other than a period

When you type a non-period completion character and delay for a set number of milliseconds, a list of possible variables, classes, and methods that might complete the text appear. You can make a selection as described previously.