Another Braces Indentation Question

3 posts, 0 answers
  1. Marcus Kellermann
    Marcus Kellermann avatar
    56 posts
    Member since:
    Jul 2004

    Posted 28 Jan 2013 Link to this post

    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. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 30 Jan 2013 Link to this post

    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.
  3. DevCraft banner
  4. Marcus Kellermann
    Marcus Kellermann avatar
    56 posts
    Member since:
    Jul 2004

    Posted 30 Jan 2013 Link to this post

    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.
Back to Top