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@gmail.comwrote:
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@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@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate