C++ - Spaces
- In declarations
- Before ptr/ref in declaration of variable
- After ptr/ref in declaration of variable
- Before ptr/ref in declaration of multiple variables
- After ptr/ref in declaration of multiple variables
- Before ptr/ref in return type of function
- After ptr/ref in return type of function
- After comma in declaration of multiple variables
- Before comma in declaration of multiple variables
- After comma in function parameters
- Before comma in function parameters
- Before parentheses in function parameters
- Within parentheses in function parameters
- Within empty parentheses in function parameters
- Before angle brackets in template parameters
- Within angle brackets in template parameters
- Within empty angle brackets in template parameters
- After comma in template parameters
- Before comma in template parameters
- Before angle brackets in template arguments
- Within angle brackets in template arguments
- After comma in template arguments
- Before comma in template arguments
- Between closing angle brackets in template arguments
- Around '=' in alias declaration and namespace alias
- Around '->' in trailing return types
- In control statements
- In expressions
- Around binary operator
- Around assignment operator
- Around dot and '->'
- Within parentheses
- Before array subscript brackets
- Within array subscript brackets
- Before parentheses in function call and initialization
- Before empty parentheses in function call and initialization
- Within parentheses in cast expressions
- After parentheses in cast expressions
- Within parentheses in function call and initialization
- Within empty parentheses in function call and initialization
- Before comma in function call and initialization
- After comma in function call and initialization
- In ternary operator '? :' before '?'
- In ternary operator '? :' after '?'
- In ternary operator '? :' before ':'
- In ternary operator '? :' after ':'
- Before uniform initialization braces
- Within uniform initialization braces
- Within empty uniform initialization braces
In declarations
Before ptr/ref in declaration of variable
Property names:
[resharper_]cpp_space_before_ptr_in_data_member
, [resharper_]space_before_ptr_in_data_member
Possible values:
true | false
Examples:
After ptr/ref in declaration of variable
Property names:
[resharper_]cpp_space_after_ptr_in_data_member
, [resharper_]space_after_ptr_in_data_member
Possible values:
true | false
Examples:
Before ptr/ref in declaration of multiple variables
Property names:
[resharper_]cpp_space_before_ptr_in_data_members
, [resharper_]space_before_ptr_in_data_members
Possible values:
true | false
Examples:
After ptr/ref in declaration of multiple variables
Property names:
[resharper_]cpp_space_after_ptr_in_data_members
, [resharper_]space_after_ptr_in_data_members
Possible values:
true | false
Examples:
Before ptr/ref in return type of function
Property names:
[resharper_]cpp_space_before_ptr_in_method
, [resharper_]space_before_ptr_in_method
Possible values:
true | false
Examples:
After ptr/ref in return type of function
Property names:
[resharper_]cpp_space_after_ptr_in_method
, [resharper_]space_after_ptr_in_method
Possible values:
true | false
Examples:
After comma in declaration of multiple variables
Property names:
[resharper_]cpp_space_after_comma_in_declaration
, [resharper_]cpp_space_after_comma
, [resharper_]space_after_comma_in_declaration
, [resharper_]space_after_comma
Possible values:
true | false
Examples:
Before comma in declaration of multiple variables
Property names:
[resharper_]cpp_space_before_comma_in_declaration
, [resharper_]cpp_space_before_comma
, [resharper_]space_before_comma_in_declaration
, [resharper_]space_before_comma
Possible values:
true | false
Examples:
After comma in function parameters
Property names:
[resharper_]cpp_space_after_comma_in_method
, [resharper_]cpp_space_after_comma
, [resharper_]space_after_comma_in_method
, [resharper_]space_after_comma
Possible values:
true | false
Examples:
Before comma in function parameters
Property names:
[resharper_]cpp_space_before_comma_in_method
, [resharper_]cpp_space_before_comma
, [resharper_]space_before_comma_in_method
, [resharper_]space_before_comma
Possible values:
true | false
Examples:
Before parentheses in function parameters
Property names:
[resharper_]cpp_space_between_method_declaration_name_and_open_parenthesis
, [resharper_]space_between_method_declaration_name_and_open_parenthesis
Possible values:
true | false
Examples:
Within parentheses in function parameters
Property names:
[resharper_]cpp_space_between_method_declaration_parameter_list_parentheses
, [resharper_]space_between_method_declaration_parameter_list_parentheses
Possible values:
true | false
Examples:
Within empty parentheses in function parameters
Property names:
[resharper_]cpp_space_between_method_declaration_empty_parameter_list_parentheses
, [resharper_]space_between_method_declaration_empty_parameter_list_parentheses
Possible values:
true | false
Examples:
Before angle brackets in template parameters
Property names:
[resharper_]cpp_space_before_template_params
, [resharper_]space_before_template_params
Possible values:
true | false
Examples:
true |
template·<typename·K,·typename·V>
struct·map
{
}; |
false |
template<typename·K,·typename·V>
struct·map
{
}; |
Within angle brackets in template parameters
Property names:
[resharper_]cpp_space_within_template_params
, [resharper_]space_within_template_params
Possible values:
true | false
Examples:
true |
template·<·typename·K,·typename·V·>
struct·map
{
}; |
false |
template·<typename·K,·typename·V>
struct·map
{
}; |
Within empty angle brackets in template parameters
Property names:
[resharper_]cpp_space_within_empty_template_params
, [resharper_]space_within_empty_template_params
Possible values:
true | false
Examples:
After comma in template parameters
Property names:
[resharper_]cpp_space_after_comma_in_template_params
, [resharper_]cpp_space_after_comma
, [resharper_]space_after_comma_in_template_params
, [resharper_]space_after_comma
Possible values:
true | false
Examples:
true |
template·<typename·K,·typename·V>
struct·map
{
}; |
false |
template·<typename·K,typename·V>
struct·map
{
}; |
Before comma in template parameters
Property names:
[resharper_]cpp_space_before_comma_in_template_params
, [resharper_]cpp_space_before_comma
, [resharper_]space_before_comma_in_template_params
, [resharper_]space_before_comma
Possible values:
true | false
Examples:
true |
template·<typename·K·,·typename·V>
struct·map
{
}; |
false |
template·<typename·K,·typename·V>
struct·map
{
}; |
Before angle brackets in template arguments
Property names:
[resharper_]cpp_space_before_template_args
, [resharper_]space_before_template_args
Possible values:
true | false
Examples:
Within angle brackets in template arguments
Property names:
[resharper_]cpp_space_within_template_args
, [resharper_]space_within_template_args
Possible values:
true | false
Examples:
After comma in template arguments
Property names:
[resharper_]cpp_space_after_comma_in_template_args
, [resharper_]cpp_space_after_comma
, [resharper_]space_after_comma_in_template_args
, [resharper_]space_after_comma
Possible values:
true | false
Examples:
Before comma in template arguments
Property names:
[resharper_]cpp_space_before_comma_in_template_args
, [resharper_]cpp_space_before_comma
, [resharper_]space_before_comma_in_template_args
, [resharper_]space_before_comma
Possible values:
true | false
Examples:
Between closing angle brackets in template arguments
Property names:
[resharper_]cpp_space_between_closing_angle_brackets_in_template_args
, [resharper_]space_between_closing_angle_brackets_in_template_args
Possible values:
true | false
Examples:
Around '=' in alias declaration and namespace alias
Property names:
[resharper_]cpp_space_around_alias_eq
, [resharper_]space_around_alias_eq
Possible values:
true | false
Examples:
true |
namespace·mpl·=·boost::mpl;
using·vec·=·std::vector; |
false |
namespace·mpl=boost::mpl;
using·vec=std::vector; |
Around '->' in trailing return types
Property names:
[resharper_]cpp_space_around_deref_in_trailing_return_type
, [resharper_]space_around_deref_in_trailing_return_type
Possible values:
true | false
Examples:
In control statements
Before parentheses
Property names:
[resharper_]cpp_space_after_keywords_in_control_flow_statements
, [resharper_]space_after_keywords_in_control_flow_statements
Possible values:
true | false
Examples:
Within parentheses
Property names:
[resharper_]cpp_space_between_parentheses_of_control_flow_statements
, [resharper_]space_between_parentheses_of_control_flow_statements
Possible values:
true | false
Examples:
Before semicolon in for statement
Property names:
[resharper_]cpp_space_before_semicolon_in_for_statement
, [resharper_]space_before_semicolon_in_for_statement
Possible values:
true | false
Examples:
After semicolon in for statement
Property names:
[resharper_]cpp_space_after_semicolon_in_for_statement
, [resharper_]space_after_semicolon_in_for_statement
Possible values:
true | false
Examples:
Before colon in switch case or label statement
Property names:
[resharper_]cpp_space_before_colon_in_case
, [resharper_]space_before_colon_in_case
Possible values:
true | false
Examples:
After colon in switch case or label statement
Property names:
[resharper_]cpp_space_after_colon_in_case
, [resharper_]space_after_colon_in_case
Possible values:
true | false
Examples:
In expressions
Around binary operator
Property names:
[resharper_]cpp_space_around_binary_operator
, [resharper_]space_around_binary_operator
Possible values:
true | false
Examples:
Around assignment operator
Property names:
[resharper_]cpp_space_around_assignment_operator
, [resharper_]space_around_assignment_operator
Possible values:
true | false
Examples:
Around dot and '->'
Property names:
[resharper_]cpp_space_around_dot
, [resharper_]cpp_space_around_member_access_operator
, [resharper_]space_around_dot
, [resharper_]space_around_member_access_operator
Possible values:
true | false
Examples:
Within parentheses
Property names:
[resharper_]cpp_space_within_parentheses
, [resharper_]space_within_parentheses
Possible values:
true | false
Examples:
Before array subscript brackets
Property names:
[resharper_]cpp_space_before_open_square_brackets
, [resharper_]space_before_open_square_brackets
Possible values:
true | false
Examples:
Within array subscript brackets
Property names:
[resharper_]cpp_space_within_array_access_brackets
, [resharper_]cpp_space_between_square_brackets
, [resharper_]space_within_array_access_brackets
, [resharper_]space_between_square_brackets
Possible values:
true | false
Examples:
Before parentheses in function call and initialization
Property names:
[resharper_]cpp_space_before_method_call_parentheses
, [resharper_]cpp_space_between_method_call_name_and_opening_parenthesis
, [resharper_]space_before_method_call_parentheses
, [resharper_]space_between_method_call_name_and_opening_parenthesis
Possible values:
true | false
Examples:
Before empty parentheses in function call and initialization
Property names:
[resharper_]cpp_space_before_empty_method_call_parentheses
, [resharper_]cpp_space_between_method_call_name_and_opening_parenthesis
, [resharper_]space_before_empty_method_call_parentheses
, [resharper_]space_between_method_call_name_and_opening_parenthesis
Possible values:
true | false
Examples:
Within parentheses in cast expressions
Property names:
[resharper_]cpp_space_between_typecast_parentheses
, [resharper_]space_between_typecast_parentheses
Possible values:
true | false
Examples:
After parentheses in cast expressions
Property names:
[resharper_]cpp_space_after_cast
, [resharper_]space_after_cast
Possible values:
true | false
Examples:
Within parentheses in function call and initialization
Property names:
[resharper_]cpp_space_between_method_call_parameter_list_parentheses
, [resharper_]space_between_method_call_parameter_list_parentheses
Possible values:
true | false
Examples:
Within empty parentheses in function call and initialization
Property names:
[resharper_]cpp_space_between_method_call_empty_parameter_list_parentheses
, [resharper_]space_between_method_call_empty_parameter_list_parentheses
Possible values:
true | false
Examples:
Before comma in function call and initialization
Property names:
[resharper_]cpp_space_before_comma_in_method_call
, [resharper_]cpp_space_before_comma
, [resharper_]space_before_comma_in_method_call
, [resharper_]space_before_comma
Possible values:
true | false
Examples:
After comma in function call and initialization
Property names:
[resharper_]cpp_space_after_comma_in_method_call
, [resharper_]cpp_space_after_comma
, [resharper_]space_after_comma_in_method_call
, [resharper_]space_after_comma
Possible values:
true | false
Examples:
In ternary operator '? :' before '?'
Property names:
[resharper_]cpp_space_before_ternary_quest
, [resharper_]space_before_ternary_quest
Possible values:
true | false
Examples:
In ternary operator '? :' after '?'
Property names:
[resharper_]cpp_space_after_ternary_quest
, [resharper_]space_after_ternary_quest
Possible values:
true | false
Examples:
In ternary operator '? :' before ':'
Property names:
[resharper_]cpp_space_before_ternary_colon
, [resharper_]space_before_ternary_colon
Possible values:
true | false
Examples:
In ternary operator '? :' after ':'
Property names:
[resharper_]cpp_space_after_ternary_colon
, [resharper_]space_after_ternary_colon
Possible values:
true | false
Examples:
Before uniform initialization braces
Property names:
[resharper_]cpp_space_before_initializer_braces
, [resharper_]space_before_initializer_braces
Possible values:
true | false
Examples:
Within uniform initialization braces
Property names:
[resharper_]cpp_space_within_initializer_braces
, [resharper_]space_within_initializer_braces
Possible values:
true | false
Examples:
Within empty uniform initialization braces
Property names:
[resharper_]cpp_space_within_empty_initializer_braces
, [resharper_]space_within_empty_initializer_braces
Possible values:
true | false