Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Applies to: Visual Studio
Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Use the Code Validation page of the Options dialog box to modify settings that affect the way that JavaScript handles errors. You can access the Code Validation page by choosing Tools > Options on the menu bar, and then expanding Text Editor > JavaScript/TypeScript > Code Validation.
Note
Your computer might show different names or locations for some of the Visual Studio user interface elements in this article. You may be using a different edition of Visual Studio or different environment settings. For more information, see Personalize the IDE.
The Code Validation page contains the following sections:
JavaScript errors
You can use these options to set preferences for how the JavaScript editor validates syntax in your document.
UIElement list
Enable JavaScript errors
When set to True, the JavaScript code editor shows errors for JavaScript and JSX files. Errors appear in the Error List with a (JS) prefix. Viewing these errors is useful if you're working with code that you didn't write and you don't intend to fix syntax errors.
Show errors as warnings
When set to True, JavaScript errors are shown as warnings instead of errors in the Error List.