Sublime Forum

Basic question, about view.options()

#1

Nice looking app, now I have to figure out how to use it!

I’m viewing the Console with a Ruby file open, I type the following into it:

view.options().get(‘autoIndent’)
Traceback (most recent call last):
File “”, line 1, in
AttributeError: ‘View’ object has no attribute ‘options’

This can’t be right, can it?

Sublime Text 2, build 2095.

Thanks again.

0 Likes

#2

Try this instead:

view.settings().get(“auto_indent”)

There’s more info at:

sublimetext.com/docs/2
sublimetext.info/docs/en

0 Likes

#3

I see, different syntax. Version 2 versus 1, I’m guessing. Thank you.

0 Likes