ReSharper 10.0 Help

Context Actions

ReSharper | Options | Code Editing | C++ | Context Actions

By selecting or clearing check boxes in this page, you can compile the list of available Context Actions. When you select a specific context action, you can read its description in the bottom of the page.

ReSharper provides the following context actions for Cpp:

NameDescription
Add '= default' specifier to a function without definition Marks a function without definition as defaulted.
Add '= delete' specifier to a function without definition Marks a function without definition as deleted.
Add 'override' specifier to an overriding function Marks an overriding member function with the 'override' specifier.
Add pure specifier to a virtual function without definition Marks a virtual function without definition with a pure specifier.
Add 'virtual' specifier to a virtual member function Adds 'virtual' specifier to a virtual member function.
Convert '?:' to 'if' Converts expression involving ternary operator to equivalent if-statement
Convert a typedef declaration into an alias declaration Replaces a typedef declaration with an equivalent alias declaration.
Convert an alias declaration into a typedef declaration Replaces an alias declaration with an equivalent typedef declaration.
Convert 'if' to '?:' Converts if-statement to equivalent using ternary operator
Create derived class Creates a derived class.
Create derived interface Creates a derived interface.
Create derived struct Creates a derived struct.
Flip relational operator Flips operands of binary relational operators
Generate case-stubs Generates missing case statements for the given switch statement
Generate constructor Generate constructor.
Generate definitions by declarations Generate definitions by declarations.
Generate GMock methods Generate GMock methods.
Generate implementation by declaration Generate implementation by declaration
Generate inline implementation Generate inline implementation
Generate missing members Generate missing members.
Generate overriding members Generate overriding members.
Initialize member from constructor parameter Initializes member from constructor parameter
Invert 'if' statement Inverts guard condition of an 'if' statement and swaps the branches' code accordingly
Join declartions Joins declarations into declaration with multiple declarators
Merge nested 'if' statements Merges two nested 'if' statements to a single 'if' statement that checks conjunction of the original conditions.
Move function implementation out of class scope Moves function implementation out of class scope.
Move function implementation to source file Moves function implementation to a source file.
Remove braces Removes unnecessary braces around one or more statements in the code
Replace 'auto' with explicit type declaration Replaces 'auto' with explicit type declaration.
Replace decltype Replace decltype with the underlying type
Split declaration with multiple declarators Splits declaration containing multiple declarators into multiple declarations
Substitute macro call Substitute macro call
Substitute macro call with all nested calls Substitute macro call
Substitute template type alias Replace template type alias with the underlying type
Substitute typedef Replace typedef with the underlying type
Substitute typedef and all nested typedefs Replace typedef and all nested typedefs with the underlying type

See Also

Last modified: 8 January 2016