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.
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@lists.macromates.com http://lists.macromates.com/listinfo/textmate
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@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@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
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@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@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@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 2012-01-31 12:24, David Howden 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'; }
And there was much rejoicing! Do you know if it's possible to do this globally instead of separately for each bundle?
I don't think that it is possible to set this globally.
It is strange though. The bundles that I have written all work correctly - I only seem to have problems with other peoples' bundles :-P
David.
On Tue, Jan 31, 2012 at 9:00 PM, Steve King sking@arbor.net wrote:
On 2012-01-31 12:24, David Howden 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'; }
And there was much rejoicing! Do you know if it's possible to do this globally instead of separately for each bundle?
-- Steve King Sr. Software Engineer Arbor Networks +1 734 821 1461 www.arbornetworks.com http://www.arbornetworks.com/**
______________________________**_________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/**listinfo/textmatehttp://lists.macromates.com/listinfo/textmate
On Jan 31, 2012, at 4:00 PM, Steve King wrote:
- 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'; }
And there was much rejoicing! Do you know if it's possible to do this globally instead of separately for each bundle?
I think the answer’s right there on the first line. Create the settings in your personal bundle but *don’t* provide a scope at all and it should apply everywhere. (I haven’t tested this.)