You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Okay, so not quite as easy as I'd hoped. There's no Rebracer.xml in RxUI, and the R# settings seem to be a fair bit different to the ones I had created.
I created mine by messing with R# options and formatting RequestBuilderImplementation.cs until there were no visible changes to the file after formatting, so I'm pretty sure it's good. (It has a few things that are missing from the RxUI one -- like catch blocks being on the same line, etc.)
The R# one should be forcing braces for multi-line but hoisting single line if statements up to the same line, which was the convention Paul seemed to o be using. I did this all by guesswork and comparison to existing code, so it's entirely possible there are some gaps.
I wonder why the rebracer file doesn't work? The R# one is more comprehensive but both of them still have some small differences. There are some things in the existing code that aren't consistent with each other (like spaces after an if keyword), so for those I just tried to match whatever was more common.
Activity
bennor commentedon Dec 19, 2014
I've got one of these hanging around that I will add later today. I assume you meant ReSharper and not rebracer?
clairernovotny commentedon Dec 19, 2014
No, I meant rebracer, though R# works too.
https://visualstudiogallery.msdn.microsoft.com/410e9b9f-65f3-4495-b68e-15567e543c58
clairernovotny commentedon Dec 19, 2014
I will never like the java/javascript brace style :P
bennor commentedon Dec 19, 2014
Never heard of rebracer. Will check it out.
clairernovotny commentedon Dec 19, 2014
Yeah, it's a bit more targeted than R# and it's free, so it's more likely to get people to abide by it. Just install the VSIX and go.
anaisbetts commentedon Dec 19, 2014
clairernovotny commentedon Dec 19, 2014
@paulcbetts 👍
bennor commentedon Dec 19, 2014
Cool. Will sort them both out soon. 😸
anaisbetts commentedon Dec 19, 2014
@bennor Steal them from ReactiveUI
bennor commentedon Dec 19, 2014
👍 easy
bennor commentedon Dec 19, 2014
Okay, so not quite as easy as I'd hoped. There's no
Rebracer.xmlin RxUI, and the R# settings seem to be a fair bit different to the ones I had created.I created mine by messing with R# options and formatting
RequestBuilderImplementation.csuntil there were no visible changes to the file after formatting, so I'm pretty sure it's good. (It has a few things that are missing from the RxUI one -- likecatchblocks being on the same line, etc.)I'll create a PR with the files in a few minutes.
clairernovotny commentedon Dec 20, 2014
The R# ones look good, except for missing the Add Braces for an if block if they're not already there.
The rebracer ones don't seem to work; Edit->Format document gives me different results. Maybe the Rebracer just isn't worth the hassle?
bennor commentedon Dec 20, 2014
The R# one should be forcing braces for multi-line but hoisting single line if statements up to the same line, which was the convention Paul seemed to o be using. I did this all by guesswork and comparison to existing code, so it's entirely possible there are some gaps.
I wonder why the rebracer file doesn't work? The R# one is more comprehensive but both of them still have some small differences. There are some things in the existing code that aren't consistent with each other (like spaces after an
ifkeyword), so for those I just tried to match whatever was more common.