Based on metadata provided by VJET JS Type Libraries, the code assistance features help developers to code efficiently and accurately. These features are similar to those available in the Eclipse Java plugin; you can refer to Eclipse Help for more information.
Press Ctrl-Space for code assist, which displays an 'as you type' list of code proposals. Use the arrow keys to scroll the list, and press the Enter key to insert the selected code.
Code assist displays Help as you scroll through the options.
Upon selection, the function is inserted with arguments and a hover over help tip.
Object Literal code assist displays a list of the object literal's
properties. Note the question mark ('?') in the proposal. This
indicates that the property is optional. In the example,
duration
is required, the other properties are optional.
Property requirements are enforced. In the example,
duration
is required, so VJET displays an error marker.
Once the required property is added, the error marker disappears.
The example includes a callback within the object literal. Code assist
recognizes that
node
is a Node type, and proposes the appropriate code options.
Code assist also recognizes when the function definition should not return a value, and displays an error marker when a return is added.
Hover over the error marker to display the error message.
VJET JS detects validation errors and marks incorrect code. Hover over the error marker for the error message, or go to the Problems View for detailed information.
Details of validation errors appear in the Problems View.
VJET JS detects semantic errors and marks the incorrect code. Hover over the error marker for the error message.
VJET JS detects syntax errors and marks the incorrect code. Hover over the error marker for the error message.
Placing the cursor over an entity is another way to display Help. Some help content is large and will be truncated; press the F2 key to display the full help content.