[TxMt] Re: [TM2] Auto-indentation

David Howden dhowden at gmail.com
Tue Jan 31 17:26:28 UTC 2012


Of course, if you want to rewrite the indentation rules for the language,
then you are free to :-).  Here's a link to the docs:

http://manual.macromates.com/en/appendix#indentation_rules

David.

On Tue, Jan 31, 2012 at 5:24 PM, David Howden <dhowden at gmail.com> wrote:

> I find that the main problems are with the "auto-correction" of
> indentation, you can disable this as follows:
>
> + Add a settings item to the bundle in question (make sure that the scope
> for the setting item is set correctly).
> + Add this dict to the settings:  { disableIndentCorrections = '1'; }
>
> David.
>
>
> On Tue, Jan 31, 2012 at 5:14 PM, Carsten Hoever <hoever at gmx.de> wrote:
>
>> Same here with MATLAB as language.
>>
>> On 31 Jan 2012, at 16:39, Emmanuel Blot wrote:
>>
>> > Hi All,
>> >
>> > I'm editing C files with TM2, and the auto indentation is often wrong,
>> > and forces the cursor to move to an unexpected position when I start
>> > writing a new line.
>> >
>> > I'm looking for information/guide to:
>> >  * disable the whole auto-indentation feature
>> >  * configure the auto-indentation feature, if it's feasible
>> >  * cancel the last auto-indentation action: Cmd-Z removes both the
>> > indentation and the typed character. In many others editors, Cmd-Z
>> > cancels the automatic action, then a second hit remove the last typed
>> > char. Is there an equivalent in TM2?
>> >
>> > Thanks,
>> > Emmanuel.
>> >
>> > _______________________________________________
>> > textmate mailing list
>> > textmate at lists.macromates.com
>> > http://lists.macromates.com/listinfo/textmate
>>
>>
>> _______________________________________________
>> textmate mailing list
>> textmate at lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20120131/8ff655d4/attachment.html>


More information about the textmate mailing list