Home Download Buy Blog Forum Support

Dev Build 2172

Dev Build 2172

Postby jps on Mon Jan 30, 2012 11:54 am

Dev Build 2172 is out now.

The biggest change is to automatic indentation, which works better in general now, and especially so for C, C++ and Objective-C. Please let me know if you find any cases where it's acting worse than in earlier builds.
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2172

Postby jbrooksuk on Mon Jan 30, 2012 12:51 pm

Will this sort a problem with HTML where the indentation of content will get pushed around?
jbrooksuk
 
Posts: 778
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Dev Build 2172

Postby jbrooksuk on Mon Jan 30, 2012 1:00 pm

Nope.

Under HTML, insert a new tag (Ctrl+Alt+W) type 'div' say, then press Tab. Closing tag now jumps :(
jbrooksuk
 
Posts: 778
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Dev Build 2172

Postby dacap on Mon Jan 30, 2012 2:52 pm

dacap
 
Posts: 8
Joined: Thu Dec 22, 2011 2:44 pm
Location: Santa Fe, Santa Fe, Argentina

Re: Dev Build 2172

Postby derekjohnson on Mon Jan 30, 2012 3:40 pm

Yeah, HTML tags are worse than before. The closing tag jumps back a tab when the cursor is between the opening and closing tag and you press enter.
derekjohnson
 
Posts: 1
Joined: Mon Jan 30, 2012 3:38 pm

Re: Dev Build 2172

Postby daris on Mon Jan 30, 2012 6:18 pm

The PHP indentation is very annoying now, because I have to correct it every time manually.

Before when typing {:
Code: Select all
   function count($table, $field)
   {
      
   }

Now:
Code: Select all
   function count($table, $field)
      {
      
      }
daris
 
Posts: 5
Joined: Fri Dec 23, 2011 10:19 am

Re: Dev Build 2172

Postby fjl on Mon Jan 30, 2012 6:38 pm

It'd be nice to be able to implement indentation as a plugin (possibly through sublime_plugin.EventListener).
fjl
 
Posts: 36
Joined: Wed Dec 28, 2011 12:41 am

Re: Dev Build 2172

Postby zee on Mon Jan 30, 2012 7:13 pm

There's a frustrating quirk with Python now (not sure, but don't remember seeing it before), probably with other languages too:

You start with something like this (| = cursor):
Code: Select all
class Foo:
    def foo(self):
        pass|

If you press enter, cursor moves to the next line aligned at the start of “pass”, which is to be expected. Now suppose you want to write another function: you press backspace to move the cursor 1 indent back, press enter and it jumps back to “pass” level again:

Code: Select all
class Foo:
    def foo(self):
        pass

        |


While you could teach yourself to press enter first and then de-indent, the editor should probably keep in mind that I explicitly decreased the indentation level (by pressing backspace) and not just blindly use the source code.
zee
 
Posts: 12
Joined: Wed Dec 07, 2011 7:57 am

Re: Dev Build 2172

Postby rchl on Mon Jan 30, 2012 7:43 pm

C++ indentation indeed works better now!

Pressing enter in this case indents automatically:
Code: Select all
if (1)|


and unindents when pressing enter here:
Code: Select all
if (1)
    foo;|


Please do not regress this behavior when fixing regressions. :)
rchl
 
Posts: 148
Joined: Fri Mar 04, 2011 11:02 pm

Re: Dev Build 2172

Postby C0D312 on Mon Jan 30, 2012 8:45 pm

Indentation works better in Java, too. Yippee!
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Next

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 30 guests