Home Download Buy Blog Forum Support

Basic question, about view.options()

Basic question, about view.options()

Postby bosborne on Sat Aug 20, 2011 4:11 pm

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 "<string>", line 1, in <module>
AttributeError: 'View' object has no attribute 'options'

This can't be right, can it?

Sublime Text 2, build 2095.

Thanks again.
bosborne
 
Posts: 4
Joined: Fri Jun 17, 2011 8:21 pm

Re: Basic question, about view.options()

Postby guillermooo on Sat Aug 20, 2011 8:48 pm

Try this instead:

view.settings().get("auto_indent")

There's more info at:

sublimetext.com/docs/2
sublimetext.info/docs/en
guillermooo
 
Posts: 723
Joined: Thu Jul 23, 2009 9:06 am

Re: Basic question, about view.options()

Postby bosborne on Sat Aug 20, 2011 9:26 pm

I see, different syntax. Version 2 versus 1, I'm guessing. Thank you.
bosborne
 
Posts: 4
Joined: Fri Jun 17, 2011 8:21 pm


Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot], mark4 and 84 guests