Rider for Unreal, Format c++ code. What is config rules?
Followed by 2 people
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
Please sign in to leave a comment.
Hello,
Could you please check that "Keep existing line breaks" formatting option is enabled for you?
Sorry, but this position has already been set. I'm attach my configuration, maybe it will help us find issue.
Thank you.
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
If i undestand correctly, that`s what you want Show Code Style Configuration Result
You have
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.
Thanks, this fixed the situation, EditorConfig redefined field values but I didn’t use it.