共用方式為


Set language-specific editor options

Applies to: yesVisual Studio noVisual 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

Visual Studio offers a variety of text editor options that apply to specific programming languages. You can configure options in the Options dialog box, which is accessed from the Tools menu. You can also configure some editor settings on a project- or codebase-basis by creating an EditorConfig file.

Settings available in the Options dialog box

Options, Text Editor, Basic (Visual Basic)
Describes settings for end constructs, code reformatting, outlining, and error correction suggestions, among others, for Visual Basic code.

Options, Text Editor, C/C++, Formatting
Describes outlining, indenting, Quick Info, and other settings for C and C++ code.

Options, Text Editor, C/C++, Advanced
Describes settings for IntelliSense and database files when using C and C++.

Options, Text Editor, C#, Formatting
Describes settings for indenting, new line formatting, and wrapping text, among others, for C#.

Options, Text Editor, C#, Advanced
Describes outlining, error identification, and XML documentation comment settings for C#.

Options, Text Editor, C#, IntelliSense
Describes settings that specify how the IntelliSense completion list behaves when you work in C# code.

Options, Text Editor, XAML, Formatting
Describes settings for element and attribute arrangement in XAML documents.

See also