Hi All,
I downloaded TextMate today and am evaluating switching to it from Emacs. There are many things I like about it so far, but I have three questions.
I code in C++. When I try to re-indent a selected chunk of code, using Text -> Indent Selection, it seems to do the wrong thing for any code that appears after comment lines. Am I doing it wrong?
Also, is there any way to invoke Make from within TextMate. And finally, is there a gdb mode for debugging apps, like Emacs has?
Thanks! Mark
On 2 Sep 2009, at 07:22, Mark Fletcher wrote:
I code in C++. When I try to re-indent a selected chunk of code, using Text -> Indent Selection, it seems to do the wrong thing for any code that appears after comment lines. Am I doing it wrong?
Afraid this is to be expected. It has a set of rules on how to adjust the indent based on line-by-line matching. Block-comments does not fit well into this system.
Also, is there any way to invoke Make from within TextMate.
Yes, there is a nice Make bundle: http://svn.textmate.org/trunk/Bundles/Make.tmbundle/ — presently we do not include it by default, but I think we should :)
I think the Make bundle by default has “make” on ⌘B and unscoped. If you have the Xcode bundle, that one may eclipse it for C++ sources, so disable that bundle (bundle editor).
And finally, is there a gdb mode for debugging apps, like Emacs has?
That there is not, sorry.
On Sep 2, 2009, at 12:21 PM, Allan Odgaard wrote:
On 2 Sep 2009, at 07:22, Mark Fletcher wrote:
I code in C++. When I try to re-indent a selected chunk of code, using Text -> Indent Selection, it seems to do the wrong thing for any code that appears after comment lines. Am I doing it wrong?
Afraid this is to be expected. It has a set of rules on how to adjust the indent based on line-by-line matching. Block-comments does not fit well into this system.
Single line comments have the same problem with the PHP bundle. Easiest way to reproduce it is to select a chunk of code and hit cmd-/ to comment it out (which also reformats it for some reason?). Then reformat the whole file. The indentation will be completely wrong. -- Jacob Coby