Apologies for the straightforward question, but I can't find an answer in the documentation.
How do insert a TAB character at the start of a line? The TAB key (and ctrl-I) insert 2 spaces rather than a tab when at the beginning of a line, but a TAB in the middle or at the end. Is there any way of making the TAB key behave like this at the start?
Also, can I change the formatting view, so the tab identifier (>>) is more obvious?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How do insert a TAB character at the start of a line? The TAB key (and ctrl-I) insert 2 spaces rather than a tab when at the beginning of a line, but a TAB in the middle or at the end. Is there any way of making the TAB key behave like this at the start?
I agree the configuration options on this are pretty confusing. Do this: Open a script window, go to Settings->Configure Editor->Editing->Indentation. You will want to set your indentation mode to either "Tabulators" (recommended) or "Tabulators and Spaces". For the latter option, make sure that your setting for indentation width equals the tab width (e.g. set both to 8 characters).
Also, can I change the formatting view, so the tab identifier (>>) is more obvious?
In the configuration dialog, go to "Fonts & Colors". You can adjust the color of the "Tab and space markers", there.
Regards
Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-11-11
Hi, thanks for that- really helpful.
:)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Apologies for the straightforward question, but I can't find an answer in the documentation.
How do insert a TAB character at the start of a line? The TAB key (and ctrl-I) insert 2 spaces rather than a tab when at the beginning of a line, but a TAB in the middle or at the end. Is there any way of making the TAB key behave like this at the start?
Also, can I change the formatting view, so the tab identifier (>>) is more obvious?
Thanks
Hi,
I agree the configuration options on this are pretty confusing. Do this: Open a script window, go to Settings->Configure Editor->Editing->Indentation. You will want to set your indentation mode to either "Tabulators" (recommended) or "Tabulators and Spaces". For the latter option, make sure that your setting for indentation width equals the tab width (e.g. set both to 8 characters).
In the configuration dialog, go to "Fonts & Colors". You can adjust the color of the "Tab and space markers", there.
Regards
Thomas
Hi, thanks for that- really helpful.
:)