[TxMt] Re: Tabs as spaces (characters)
Ronald Wampler
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
scopes.
Ron
On Mon, Apr 14, 2014 at 9:38 AM, Eric Merrill <eric.a.merrill at gmail.com>wrote:
> Thanks!
>
> 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!
>
> -Eric
>
>
> 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
>> not,
>> > I really hope you can add it - love TM2!
>>
>> Look at the base of the editing window. (Just left of the gear wheel.)
>>
>> Cheers,
>> Paul
>>
>> _______________________________________________
>> textmate mailing list
>> textmate at lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>>
>
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20140414/58a67ee0/attachment.html>
More information about the textmate
mailing list