Sublime Forum

Dev Build 2172

#21

Yay! Python works again 2

0 Likes

#22

Cheerleading too soon

[code]if 1:
if 1:
if current < 8:
current = 8
s.set(“font_size”, current)

    sublime.save_settings("Base File.sublime-settings")

class ResetFontSizeCommand(sublime_plugin.ApplicationCommand):
def run(self):
s = sublime.load_settings(“Base File.sublime-settings”)
[/code]

Try putting the cursor in front of class and hitting enter

0 Likes

#23

Thanks @C0D312! Amazing.

0 Likes

#24

Regression in c/c++ indentation.

Pressing enter here:

/* foo bar */ if (1)|

indents according to the second line of the comment which is now closed.

(I hope Jon has a good testing coverage for this because it seems it’s almost impossible to fix something without regressing other stuff. :smile:)

0 Likes

#25

Actually what I’ve reported was not entirely precise.
It needs screenshots to show the problem because part of the problem is mixing tabs and spaces.

This is how example code looks like:


And this is what happens after pressing enter after respective lines:



0 Likes

#26


0 Likes

#27

[quote=“farmerpaul”]

)
Thanks @C0D312! Amazing.[/quote]

Glad you like it. :smile:

I’m also seeing some pretty annoying behaviour with auto indentation:

var foo, bar, baz; |
Press enter:

var foo,
    bar,
    baz;

    |

What was desired:

var foo,
    bar,
    baz;

|
0 Likes

#28

I second this; I know I can use the key commands for indent/unindent rather than delete to accomplish this, but I’d rather stick to my muscle memory with delete and what I’m used to in every other text editor.

0 Likes

#29

There’s a small nuisance in ver. 2173 of ST2:

http://img1.UploadScreenshot.com/images/main/2/3100475371.png

The lineheight seem a bit off here and there in my CSS. Is it just me or is anyone else also experiencing this?

0 Likes

#30

2173 has a problem with JavaScript and auto-indent + return in brackets:

EDIT: This issue is specific to 2173. When I roll back to 2172 it works as expected.

function methodName () {
  var obj = {|}
}

// pressing enter then gives us this:

function methodName () {
  var obj = {
    |
}
}
0 Likes

#31

[quote=“spadgos”]

)
Thanks @C0D312! Amazing.
Glad you like it. :smile:

I’m also seeing some pretty annoying behaviour with auto indentation:

var foo, bar, baz; |
Press enter:

var foo,
    bar,
    baz;

    |

What was desired:

[code]
var foo,
bar,
baz;

|
[/code][/quote]

This is fixed now, thanks!

0 Likes