C++ - Spaces
Last modified: 21 July 2022In declarations
Before ptr 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:
true |
---|
|
false |
---|
|
After ptr 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:
true |
---|
|
false |
---|
|
Before ptr 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:
true |
---|
|
false |
---|
|
After ptr 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:
true |
---|
|
false |
---|
|
Before ptr 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:
true |
---|
|
false |
---|
|
After ptr 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:
true |
---|
|
false |
---|
|
Before ptr in abstract declaration
Property names:
[resharper_]cpp_space_before_ptr_in_abstract_decl
, [resharper_]space_before_ptr_in_abstract_decl
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Before ref in declaration of variable
Property names:
[resharper_]cpp_space_before_ref_in_data_member
, [resharper_]space_before_ref_in_data_member
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
After ref in declaration of variable
Property names:
[resharper_]cpp_space_after_ref_in_data_member
, [resharper_]space_after_ref_in_data_member
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Before ref in declaration of multiple variables
Property names:
[resharper_]cpp_space_before_ref_in_data_members
, [resharper_]space_before_ref_in_data_members
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
After ref in declaration of multiple variables
Property names:
[resharper_]cpp_space_after_ref_in_data_members
, [resharper_]space_after_ref_in_data_members
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Before ref in return type of function
Property names:
[resharper_]cpp_space_before_ref_in_method
, [resharper_]space_before_ref_in_method
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
After ref in return type of function
Property names:
[resharper_]cpp_space_after_ref_in_method
, [resharper_]space_after_ref_in_method
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Before ref in abstract declaration
Property names:
[resharper_]cpp_space_before_ref_in_abstract_decl
, [resharper_]space_before_ref_in_abstract_decl
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
After comma in enum
Property names:
[resharper_]cpp_space_after_comma_in_enum
, [resharper_]cpp_space_after_comma
, [resharper_]space_after_comma_in_enum
, [resharper_]space_after_comma
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Before comma in enum
Property names:
[resharper_]cpp_space_before_comma_in_enum
, [resharper_]cpp_space_before_comma
, [resharper_]space_before_comma_in_enum
, [resharper_]space_before_comma
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
After comma in base clause
Property names:
[resharper_]cpp_space_after_comma_in_base_clause
, [resharper_]cpp_space_after_comma
, [resharper_]space_after_comma_in_base_clause
, [resharper_]space_after_comma
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Before comma in base clause
Property names:
[resharper_]cpp_space_before_comma_in_base_clause
, [resharper_]cpp_space_before_comma
, [resharper_]space_before_comma_in_base_clause
, [resharper_]space_before_comma
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
Before parentheses in lambda parameters
Property names:
[resharper_]cpp_space_before_lambda_parentheses
, [resharper_]space_before_lambda_parentheses
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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 |
---|
|
false |
---|
|
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 |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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 |
---|
|
false |
---|
|
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 |
---|
|
false |
---|
|
Before angle brackets in template arguments
Property names:
[resharper_]cpp_space_before_template_args
, [resharper_]space_before_template_args
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Within angle brackets in template arguments
Property names:
[resharper_]cpp_space_within_template_args
, [resharper_]space_within_template_args
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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 |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
Before base types list colon
Property names:
[resharper_]cpp_space_before_colon_in_inheritance_clause
, [resharper_]space_before_colon_in_inheritance_clause
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
After base types list colon
Property names:
[resharper_]cpp_space_after_colon_in_inheritance_clause
, [resharper_]space_after_colon_in_inheritance_clause
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Before C++/CLI generic constraint colon
Property names:
[resharper_]cpp_space_before_type_parameter_constraint_colon
, [resharper_]space_before_type_parameter_constraint_colon
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
After C++/CLI generic constraint colon
Property names:
[resharper_]cpp_space_after_type_parameter_constraint_colon
, [resharper_]space_after_type_parameter_constraint_colon
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
Before semicolon
Property names:
[resharper_]cpp_space_before_semicolon_in_for_statement
, [resharper_]space_before_semicolon_in_for_statement
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
After semicolon
Property names:
[resharper_]cpp_space_after_semicolon_in_for_statement
, [resharper_]space_after_semicolon_in_for_statement
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Before ':' in range-based for loop
Property names:
[resharper_]cpp_space_before_for_colon
, [resharper_]space_before_for_colon
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
After ':' in range-based for loop
Property names:
[resharper_]cpp_space_after_for_colon
, [resharper_]space_after_for_colon
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
In expressions
Around binary operator
Property names:
[resharper_]cpp_space_around_binary_operator
, [resharper_]space_around_binary_operator
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Around assignment operator
Property names:
[resharper_]cpp_space_around_assignment_operator
, [resharper_]space_around_assignment_operator
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
Within parentheses
Property names:
[resharper_]cpp_space_within_parentheses
, [resharper_]space_within_parentheses
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Before array subscript brackets
Property names:
[resharper_]cpp_space_before_open_square_brackets
, [resharper_]space_before_open_square_brackets
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
Within parentheses in cast expressions
Property names:
[resharper_]cpp_space_between_typecast_parentheses
, [resharper_]space_between_typecast_parentheses
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
After parentheses in cast expressions
Property names:
[resharper_]cpp_space_after_cast
, [resharper_]space_after_cast
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
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:
true |
---|
|
false |
---|
|
Before comma in uniform initialization braces
Property names:
[resharper_]cpp_space_before_comma_in_initializer_braces
, [resharper_]cpp_space_before_comma
, [resharper_]space_before_comma_in_initializer_braces
, [resharper_]space_before_comma
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
After comma in uniform initialization braces
Property names:
[resharper_]cpp_space_after_comma_in_initializer_braces
, [resharper_]cpp_space_after_comma
, [resharper_]space_after_comma_in_initializer_braces
, [resharper_]space_after_comma
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
In ternary operator '? :' before '?'
Property names:
[resharper_]cpp_space_before_ternary_quest
, [resharper_]space_before_ternary_quest
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
In ternary operator '? :' after '?'
Property names:
[resharper_]cpp_space_after_ternary_quest
, [resharper_]space_after_ternary_quest
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
In ternary operator '? :' before ':'
Property names:
[resharper_]cpp_space_before_ternary_colon
, [resharper_]space_before_ternary_colon
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
In ternary operator '? :' after ':'
Property names:
[resharper_]cpp_space_after_ternary_colon
, [resharper_]space_after_ternary_colon
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Before uniform initialization braces
Property names:
[resharper_]cpp_space_before_initializer_braces
, [resharper_]space_before_initializer_braces
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Within uniform initialization braces
Property names:
[resharper_]cpp_space_within_initializer_braces
, [resharper_]space_within_initializer_braces
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Within empty uniform initialization braces
Property names:
[resharper_]cpp_space_within_empty_initializer_braces
, [resharper_]space_within_empty_initializer_braces
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Other
Before end of line comment
Property names:
[resharper_]cpp_space_before_trailing_comment
, [resharper_]space_before_trailing_comment
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Preserve spaces before end of line comment
Property names:
[resharper_]cpp_disable_space_changes_before_trailing_comment
, [resharper_]disable_space_changes_before_trailing_comment
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|