ReSharper
 
Get ReSharper
You are viewing the documentation for an earlier version of ReSharper.

Coding Assistance in C++

Last modified: 21 July 2022

Most of ReSharper's coding assistance features are also supported in C++. You can find the detailed information on these features in the corresponding topics of the Coding assistance section. In the main topic of the section, you can also find the feature matrix and check what exactly is supported in C++.

In this topic, you can find some examples of using coding assistance features in C++.

By default, code inspection, quick-fixes, and context actions are available in all solution files. If necessary, you can enable these features in external files referenced from solution with the Enable inspections, quick fixes and context actions in files external to the solution checkbox on the Code Editing | C++ | Inspections page of ReSharper options (Alt+R, O).

When you use custom compiler toolchain, it сan be useful to provide additional compilation properties for better code assistance. To specify the compilation properties, select your project in Solution Explorer and go to the ReSharper section in Properties. You can specify additional include directories, add preprocessor definitions, and set the language standard:

ReSharper C++: additional project properties

The settings will be saved in a .vcxproj.DotSettings file next to the project file. Note that these additional properties do not affect compilation.