[TxMt] Re: Tabs as spaces (characters)
rdwampler at gmail.com
Mon Apr 14 14:21:24 UTC 2014
If you add a .tm_properties file in your project folder, you can have TM
set the tab size/type automatically based based on the source scope. For
example adding the following:
[ 'source.c++, source.objc++' ]
tabSize = 3
softTabs = false
[ 'source.python' ]
tabSize = 4
softTabs = true
will indent all C++/Obj C++ files 3 spaces using hard tabs (softTabs =
false), while python files will be indented with 4 spaces (softTabs =
true). You can find the appropiate source scope by opening the file and
using Shift-Ctrl-P. This will display all of the currently available
On Mon, Apr 14, 2014 at 9:38 AM, Eric Merrill <eric.a.merrill at gmail.com>wrote:
> It seems a bit weird that that tab size is up in the main menus, but not
> the tab type setting - but I’ll take it!
> On Mon, Apr 14, 2014 at 12:48 AM, Paul McCann <paul.mccann at adelaide.edu.au
> > wrote:
>> Eric asked...
>> > Maybe this feature exists (using TM2), and I just haven't found it. If
>> > I really hope you can add it - love TM2!
>> Look at the base of the editing window. (Just left of the gear wheel.)
>> textmate mailing list
>> textmate at lists.macromates.com
> textmate mailing list
> textmate at lists.macromates.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the textmate