Enable Content Assist in UX Studio
UX Studio supports content assist in Eclipse for both the B2C Commerce Script API and functions in other JavaScript files, such as controller model scripts. For the Script API, UX Studio converts cartridges to tern projects by creating a _.tern-project_ file in the cartridge root directory. If you want to use content assist with functions defined in other script files, you must update the project's properties.
- Select Properties from the popup menu.
- Expand the Tern node.
- Click Script Paths.
-
Add files, folders, and projects. See
https://github.com/angelozerr/tern.java/wiki/Tern-Eclipse-IDE
for more information on Tern for Eclipse.