[TxMt] Re: TextMate with C++ builds, and linking console output to project files

Alex Ross z-textmate at lasersox.net
Thu Mar 4 02:17:06 UTC 2010


The Make bundle is included with TextMate by default.  You can trigger the build command with ⌘B.  To build a specific target, press ⌘⇪B.

—Alex

On Mar 3, 2010, at 4:22 PM, Adam Sharp wrote:

> You might like to try the Make bundle: http://github.com/textmate/make.tmbundle. It does exactly what you describe, and produces clickable links for compiler errors. Also has a "Build Target..." command that allows you to select which make target you want to run. Very handy.
> 
> Regards,
> 
> -- 
> Adam Sharp
> Email: adsharp at me.com
> Web: www.adam-sharp.net
> 
>  
> On Thursday, March 04, 2010, at 10:57AM, "Matt Torok" <magicmat at gmail.com> wrote:
> >
> >_______________________________________________
> >textmate mailing list
> >textmate at lists.macromates.com
> >http://lists.macromates.com/listinfo/textmate
> >
> >
> 
> I'm just getting started with TextMate and want to use it for C++ programming. I'm wondering if people can give me some pointers and tricks on how to do that (other than the stuff in the C and other bundles, of course.) Right now, all I'm really using is the syntax highlighting, auto-indent and brace-matching. Everything else could be done in TextEdit.
> 
> One thing I specifically want to do is trigger my projects GNU 'make' script and then have the output pipped into a TextMate window. Not that hard to write a plugin for (though if anybody already has one, point me to it.) However, the tricky part is that I want to link file names in the output to files in TextMate in case the compiler spits an error at me. That means either being able to click on something like "./includes/GUI/graphs.cpp:210" and being taken to that file and line in TM, like a hyperlink, or having TM put highlights/bookmarks/whatever directly at the line in question. Is this at all possible?
> 
> I've searched Google and this list but I nothing has jumped out at me so far (though the results are so long for "C++ textmate" that there may be something buried there I'm not seeing.) If anybody can tell me how they use TM for writing C++ projects using the GNU compiler tools (g++, make, GDB, etc.) I'd really appreciate that.
> -- 
> -Matt T.
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate




More information about the textmate mailing list