Options, Text Editor, C/C++, Experimental

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. Download it here

By changing these options, you can change the behavior related to IntelliSense and the browsing database when you're programming in C or C++.

To access this page, in the Options dialog box, in the left pane, expand Text Editor, expand C/C++, and then choose Experimental.

These features are available in a Visual Studio 2015 Update 1 RC installation.

Note

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. See Customizing Development Settings in Visual Studio.

Browsing/Navigation

Enable New Database Engine
This should automatically speed up database population and make all database operations faster (with no loss in accuracy) for operations such as Go To Definition and Find All References. (Just close and reopen your solution to apply the changes; you do not have to restart Visual Studio.)

IntelliSense

Member List Dot-To-Arrow
Replaces '.' with '->' when applicable for Member List.

Refactoring

Enable Extract Function
Extract selected code to its own function and replace code with a call to the new function. To access this feature, right-click on the selected code and select Quick Actions, or simply press the default shortcut Ctrl+Dot [Ctrl+.].

Enable Change Signature
Add, reorder, and delete parameters of a function and propagate the changes to all call sites. To access this feature, right-click on any usage of the function and select Quick Actions, or simply press the default shortcut Ctrl+Dot [Ctrl+.].

Text Editor

Enable Expand Scopes
If enabled, you can surround selected text with curly braces by typing '{' into the text editor.

Enable Expand Precedence
If enabled, you can surround selected text with parentheses by typing '(' into the text editor.

For additional text editor features on the Visual Studio Gallery, see the list here. An example is C++ Quick Fixes, which supports the following:

  • Add missing #include - Suggests relevant #include's for unknown symbols in your code

  • Add using namespace/Fully qualify symbol - Like the previous item, but for namespaces

  • Add missing semicolon

  • MSDN Help - Search MSDN for your error messages

    You can either hover over a squiggle to get a light bulb, or use the default keyboard shortcut Ctrl+Dot (Ctrl+.). Note that for the keyboard shortcut, your caret doesn't need to be positioned on the specific error or token; you can simply be on the same line as the error to invoke suggestions for anything on that line.

See Also

Setting Language-Specific Editor Options
Refactoring in C++ (VC Blog)