Don't know if this is a feature yet (?), I haven't found anything like it in the docs or in the menus...
In jEdit I used a feature all the time that auto-indented my code blocks by pressng TAB. Is this available already, and if not, any plans for future releases?
On 14.02.2005, at 16:51, Ben Jackson wrote:
Don't know if this is a feature yet (?), I haven't found anything like it in the docs or in the menus...
In jEdit I used a feature all the time that auto-indented my code blocks by pressng TAB. Is this available already, and if not, any plans for future releases?
i second this!
and related to this i'd like to see a function 'indent according to current mode' which would be extremely useful when editing code created by someone else/with another tool.
just my $0.02,
best regards,
tom -- Tom Lazar, http://tomster.org
On Feb 14, 2005, at 16:58, Tom Lazar wrote:
In jEdit I used a feature all the time that auto-indented my code blocks by pressng TAB. Is this available already, and if not, any plans for future releases?
[...] and related to this i'd like to see a function 'indent according to current mode' which would be extremely useful when editing code created by someone else/with another tool.
I'm assuming that jEdit is for Java.
I'd love to add the feature requested, but any idea on how I can 'indent to current mode' when TextMate is used for 20+ languages, and each language have like 5 different programming styles? ;)
There does however exist code beautifiers/pretty printers etc. which could probably be called from TextMate (e.g. on selected text). There's one included with OS X for C (called indent).
If anyone knows of (a working) one for [Objective-]C++, let me know! :)
On Feb 14, 2005, at 8:44 PM, Allan Odgaard wrote:
On Feb 14, 2005, at 16:58, Tom Lazar wrote:
In jEdit I used a feature all the time that auto-indented my code blocks by pressng TAB. Is this available already, and if not, any plans for future releases?
[...] and related to this i'd like to see a function 'indent according to current mode' which would be extremely useful when editing code created by someone else/with another tool.
I'm assuming that jEdit is for Java.
Just a clarification. jEdit is written in Java, yes, but I believe it's got multiple modes for editing in different languages, just as TextMate does. 5 billion plugins for jEdit because it's been around longer though.
I'd love to add the feature requested, but any idea on how I can 'indent to current mode' when TextMate is used for 20+ languages, and each language have like 5 different programming styles? ;)
And you're absolutely correct here too.
There does however exist code beautifiers/pretty printers etc. which could probably be called from TextMate (e.g. on selected text). There's one included with OS X for C (called indent).
If anyone knows of (a working) one for [Objective-]C++, let me know! :)
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
* Ben Jackson ben@incomumdesign.com [2005-02-14 10:55]:>
In jEdit I used a feature all the time that auto-indented my code blocks by pressng TAB. Is this available already, and if not, any plans for future releases?
I love this in emacs, which I think it's safe to say probably had this before jEdit ;-) Been using vim more lately though and not quite sure how to do the same so easily... it'd be amazing to have in textmate.
If we could get Textmate to go to work for me everyday and do my laundry too that'd be even better...
On Mon, 14 Feb 2005, Todd Grimason wrote:
I love this in emacs, which I think it's safe to say probably had this before jEdit ;-) Been using vim more lately though and not quite sure how to do the same so easily...
On a per-line basis, == does the trick. For details on indenting ranges, the whole file, etc., go to http://www.vim.org/tips/tip.php?tip_id=83 and read the different approaches.
William D. Neumann
---
"There's just so many extra children, we could just feed the children to these tigers. We don't need them, we're not doing anything with them.
Tigers are noble and sleek; children are loud and messy."
-- Neko Case
Think of XML as Lisp for COBOL programmers.
-- Tony-A (some guy on /.)