[TxMt] Newbie question -- fixing indentation?

Allan Odgaard throw-away-1 at macromates.com
Fri Apr 28 19:18:55 UTC 2006


On 24/4/2006, at 10:54, Jonathan Barrett wrote:

> On 24 Apr 2006, at 9:48, Sune Foldager wrote:
>> This reminds me, I do miss one thing in TM (also from VS): When  
>> you paste, TM reindents, which is fine. I'd like it to count as an  
>> action on the undo stack, so I can cancel the indentation (only),  
>> if I don't want or need it.
> I hadn't realised it until now, but this single feature would let  
> me start using the reindent-on-paste feature, which gets it  
> "wrong" (based on my coding style only - nothing to do with TM  
> being "at fault"!) just enough times to make it unusable for me. A  
> quick "undo" to correct those ones would be brilliant.

It is possible to paste without re-indenting using ctrl-cmd V.

I generally know upfront when TM will get it wrong (as I coded the  
bloody thing), but otherwise it would be: cmd Z, ctrl-cmd V when it  
gets it wrong. Not one keystroke (cmd Z alone) but two -- OTOH I  
personally would hate that undo’ing a paste would be a two-step  
operation (yes, options, damn options).




More information about the textmate mailing list