Home Download Buy Blog Forum Support

Sumblime Text 2 has some issue re-indenting JavaScript code

Sumblime Text 2 has some issue re-indenting JavaScript code

Postby eareyenosemouth on Sat Apr 20, 2013 12:34 am

For this simple JavaScript snippet:

Code: Select all
jQuery(window).bind('pageshow', function() {

    setTimeout(function() {
    // hmm
    $("#foo").val("hello");

}, 1);

});

Sublime Text 2's Edit -> Line -> Reindent can't indent it properly. It can indent it properly if the comment line "// hmm" is removed. (This happens with my code when there is comments here and there in the code).

Would you please fix it please? Sublime Text 2 is being used by many team members in my team and I'd like to see it getting better and better.
eareyenosemouth
 
Posts: 1
Joined: Sat Apr 20, 2013 12:30 am

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 12 guests