Most code editors have an option where you can configure tabs to behave as x spaces - you hit tab and it inserts 4 spaces, you hit delete, it removes 4 spaces (if it seems the 4 spaces should be treated as a group).
I work on projects where the coding standards specify to not use tabs - you must you 4 spaces per level of indent.
Maybe this feature exists (using TM2), and I just haven't found it. If not, I really hope you can add it - love TM2!
Thanks -Eric
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.auwrote:
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
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