jQuery auto-formatting

2 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 10 Apr 2011 Link to this post

    I THINK I posted about this a while ago...and I cant remember the fix (if there was one)

    JustCode absolutely borks jQuery in an external javascript file

    This is a sample form the jquery site

    $('#clickme').click(function() {
      $('#book').animate({
        opacity: 0.25,
        left: '+=50',
        height: 'toggle'
      }, 5000, function() {
        // Animation complete.
      });
    });

    So each new line is tabbed in 1 place

    This is what JustCode is doing to me on semi-colon
    $('#clickme').click(function ()
        {
            $('#book').animate({
                    opacity: 0.25,
                    left: '+=50',
                    height: 'toggle'
                }, 5000, function ()
                {
                    // Animation complete.
                });
        });

    It's becoming incresingly frustrating having to go back and REformat it, then god forbid I need to edit it (borks itself again)

    Please fix...everyone uses jQuery...and I'd rather not turn off JustCode for javascript (if thats even possible)
  2. Kaloyan
    Admin
    Kaloyan avatar
    82 posts

    Posted 14 Apr 2011 Link to this post

    Hi Steve,

    Sorry for the inconvenience. We've planned, and are currently working on, a major rework of the javascript formatter for the next Q. It includes lots of new options for formatting and internal restructuring of the formatting functionality, so that you won't get such frustrating behavior anymore. For the time being you might try switching off the "Format on semicolon" option in the General page of the JustCode Options dialog, and see if that works out for you. Thanks for sharing.

    All the best,
    Kaloyan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top