Resharper : subtituate macro with multi-line code

377 Views Asked by At

Is it possible to make Resharper Substituate macro call in separate-lines mode?

Example

I have this code :-

#define TEST(T) int T=5;  \
T++;

TEST(apple);

If I click Substituate macro call and all nested calls like this :-

enter image description here

The line TEST(apple); will become :-

int apple=5; apple++;;

I hope there is an option to make the result be 2 separate lines :-

int apple=5; 
apple++;;

Other notes

I know that macro with \ is finally interpreted as a single line,
but it would be nice if there is an option to show it as many lines for eye-candy.
(Even it may break the macro behavior, e.g. those with __LINE__ )

It would be useful for debugging for a 10+ lines macro.

1

There are 1 best solutions below

5
Igor Akhmetov On BEST ANSWER

It's not possible at the moment, but you can always select the resulting code after a macro substitution and invoke "Reformat Code" (Ctrl+Alt+Enter) to make it readable.