This is a migrated thread and some comments may be shown as answers.

Another Braces Indentation Question

2 Answers 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marcus Kellermann
Top achievements
Rank 1
Marcus Kellermann asked on 28 Jan 2013, 08:16 PM
I searched around and didn't see this specific question.

I am trying to get JustCode to format a method in which the braces are indented on the following line but the block content is not.
So I would like it to appear like 
protected static void CleanUpSession(bool stsRequest = false) //keep it private for now
    {
    try
        {
        WSFederationAuthenticationModule authModule = FederatedAuthentication.WSFederationAuthenticationModule;
        SessionAuthenticationModule sam = FederatedAuthentication.SessionAuthenticationModule;
        if (sam != null)
            {
            sam.DeleteSessionTokenCookie();
            sam.CookieHandler.Delete();
            sam.SignOut();
            }
                                         
        //check if request has come from STS
        if (authModule != null && stsRequest == false)
            {
            authModule.SignOut(stsRequest);
            //string signoutUrl = (WSFederationAuthenticationModule.GetFederationPassiveSignOutUrl(authModule.Issuer, authModule.Realm, null));
            WSFederationAuthenticationModule.FederatedSignOut(new Uri(authModule.Issuer), new Uri(authModule.Reply));
            }
        }
    catch
        {
        }
    }

Instead of
protected static void CleanUpSession(bool stsRequest = false) //keep it private for now
    {
        try
            {
                WSFederationAuthenticationModule authModule = FederatedAuthentication.WSFederationAuthenticationModule;
                SessionAuthenticationModule sam = FederatedAuthentication.SessionAuthenticationModule;
                if (sam != null)
                    {
                        sam.DeleteSessionTokenCookie();
                        sam.CookieHandler.Delete();
                        sam.SignOut();
                    }
                                         
                //check if request has come from STS
                if (authModule != null && stsRequest == false)
                    {
                        authModule.SignOut(stsRequest);
                        //string signoutUrl = (WSFederationAuthenticationModule.GetFederationPassiveSignOutUrl(authModule.Issuer, authModule.Realm, null));
                        WSFederationAuthenticationModule.FederatedSignOut(new Uri(authModule.Issuer), new Uri(authModule.Reply));
                    }
            }
        catch
            {
            }
    }

2 Answers, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 30 Jan 2013, 12:55 PM
Hello,

 Thanks for contacting us.
I am afraid that we do not have such setting so far and the block contents indentation could not be changed.
However, I would suggest you posting a feature request at our new feedback portal. This way more people could become fans of the idea and raise its priority by voting for it.
Thanks.

All the best,
Zdravko
the Telerik team
Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
0
Marcus Kellermann
Top achievements
Rank 1
answered on 30 Jan 2013, 01:02 PM
OK, I submit the request, but I have to say, that I am abundantly un-impressed  with the formatting in Just Code!  Heck the basic visual studio formatting options are able to do what I am looking for.  So I would have expected Just Code to at least match that.   The rest of the feature set is nice, but boy formatting has a long, long way to go.
Tags
General Discussions
Asked by
Marcus Kellermann
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Marcus Kellermann
Top achievements
Rank 1
Share this question
or