Udostępnij za pośrednictwem


Formatting, C/C++, Text Editor, Options Dialog Box

Use this dialog box to change the default behavior of the Code Editor while you are programming in C or C++. You can access this page in the Options dialog box by expanding Text Editor folder and then expanding the C/C++ folder.

Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

C/C++ Options

  • Enable automatic Quick Info ToolTips
    Enables or disables the Quick Info IntelliSense feature.

  • Colorize inactive blocks in a different color
    Code that is inactive due to #ifdef declarations are colorized to help you identify they are inactive.

Outlining

  • Enter outlining mode when files open
    When you bring a file into the text editor, you can enable the outlining feature. See Outlining and Hiding Code for more information. When this option is selected, the outlining feature is enabled when you open a file.

  • Automatic outlining of #pragma region blocks
    When this option is selected, automatic outlining for Pragma Directives and the __Pragma Keyword is enabled, which allows you to expand or collapse pragma region blocks in outlining mode.

  • Automatic outlining of statement blocks
    When this option is selected, automatic outlining is enabled for the following statement constructs:

Indentation

  • Indent braces
    When you press enter after beginning a code block, such as a function or for loop, the curly braces can either be aligned with the first character of the code block or indented.

See Also

Tasks

How to: Set Editor Tab and Indent Options

Reference

General, Environment, Options Dialog Box