Options, Text Editor, JavaScript, IntelliSense

Use the IntelliSense page of the Options dialog box to modify settings that affect the behavior of IntelliSense for JavaScript. You can access the IntelliSense page by choosing Tools, Options on the menu bar, and then expanding Text Editor, JavaScript, IntelliSense.

NoteNote

Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Customizing Settings.

The IntelliSense page contains the following sections:

You can use these options to set preferences for how the JavaScript editor validates syntax in your document.

Show syntax errors

When this check box is not selected, the JavaScript code editor does not show syntax errors. This is useful if you are working with code that you didn't write and you don't intend to fix syntax errors.

When this check box is selected, you have the option to select the Show errors as warning check box.

Show errors as warnings

When this check box is selected, JavaScript errors are shown as warnings instead of errors in the error list.

You can use these options to change the behavior of IntelliSense statement completion.

Only use tab or enter to commit

When this check box is selected, the JavaScript code editor appends statements with items selected in the completion list only after you choose the Tab or Enter key. When this check box is not selected, other characters, such as a period, comma, colon, open parenthesis, and open brace ({), can also append statements with the selected items.

You can use these options to specify the types of IntelliSense .js files that are in scope for all your JavaScript projects. The IntelliSense references are typically used to provide IntelliSense support for global objects. You can also use this page to set the loading order for scripts that must be loaded at run time, and to add IntelliSense extension files.

Reference groups

This option specifies the reference group type. Three reference groups are supported: Implicit (Windows), Implicit (Web), and dedicated worker reference groups. Implicit (Windows) references are for Windows Store projects using JavaScript, and Implicit (Web) references are for HTML5 projects. Files included in the implicit reference group are in scope for every .js file opened in the editor. The dedicated worker reference group is for HTML5 Web workers. Files specified in the dedicated reference group are in scope for .js files with an explicit reference to a dedicated worker reference group. Implicit references do not apply to .js files with an explicit reference to a dedicated worker reference group.

Included files

This option specifies the order in which files are loaded into the context of the language service. You can configure the order by using the Remove, Move Up, and Move Down buttons. For IntelliSense to work correctly, a file that is dependent on another must be loaded after the other file.

Caution note Caution

If an object is defined unconditionally in two or more implicit references, the last reference in this list will be used to define the object.

Add a reference to the group

This option provides a way to add additional IntelliSense .js files by browsing to the appropriate files.

Show: