Rider for Unreal, Format c++ code. What is config rules?

Hi all here. 

I have simple line of code :

UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Debug", Meta = (AllowPrivateAccess = true))
UArrowComponent* MovementInputArrow;

But after reformat code (Ctr+Alt+Enter) line stay like  this:

UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Debug", Meta = (AllowPrivateAccess = true)) UArrowComponent* MovementInputArrow;

It displeasure me a little... Help, please, my be i lost my atantion in settings?

Rider for Unreal Engine 2020.1.3
Build #RDCPPP-201.7571.52

0
6 comments
Avatar
Permanently deleted user

Hello,

Could you please check that "Keep existing line breaks" formatting option is enabled for you?

0

Sorry, but this position has already been set. I'm attach my configuration,  maybe it will help us find issue.

 Thank you.

0
Avatar
Permanently deleted user

We can't reproduce the issue using your settings. Could you please run "Show Code Style Configuration" from the Alt+Enter menu and show the results?

We'll also change the formatter to always place UE attributes on a separate line in a future release - https://youtrack.jetbrains.com/issue/RSCPP-30373

0

If i undestand correctly, that`s what you want  Show Code Style Configuration Result

0
Avatar
Permanently deleted user

You have

resharper_cpp_keep_user_linebreaks=false

in your .editorconfig file, that's exactly the setting I was asking you about. Please as a workaround remove this line from your config file.

0

Thanks, this fixed the situation, EditorConfig redefined field values ​​but I didn’t use it.

0

Please sign in to leave a comment.