|
|
| Author |
Message |
victorf
Joined: 01 Jan 2006
Posts: 342
Location: Schenectady, New York
|
|
Posted: 14 January 2006, 12:42 PM Post subject: Tab settings |
|
|
Something that has bugged me with every code editor I have used including ZBasic's. How do I set the tab stops so they work the way I want them? When I write code I want tab stops to be in increments of 2. So the first tab column would be at 3. I like my statement comment columns to be aligned - usually at column 41 or 45. This is the Monk in me.
How can I set up the IDE so that when I create/edit a .bas file this tab scheme is the default. I've tried the Change Indentation Settings on the options menu but that does not appear to be sticky. I started a new .bas file yesterday and had Tab and Indent Size set to 2. Every thing was fine. Today when I opened the file these settings are back to 4 and remarks columns are all screwed up. I know I am not doing something right. How do I make this work?
Any enlightenment will be appreciated.
Vic |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2593
Location: Portland, OR
|
|
Posted: 14 January 2006, 17:58 PM Post subject: |
|
|
| Quote: | | How do I set the tab stops so they work the way I want them? When I write code I want tab stops to be in increments of 2. |
You can set the tab size and indent size globally or for specific file extensions. I believe that the following entries in your User options file will achieve your objective for newly created files.
I'm away from my computer right now so I can't confirm this.
To edit your User options, select the "Open User Options" entry on the Options menu. The file will be empty if you haven't added anything to it yet.
The various tab and indent options are described in the SciTE help that is available via the Help menu. Many/most questions about the editor configuration are addressed in that file. |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2593
Location: Portland, OR
|
|
Posted: 14 January 2006, 19:55 PM Post subject: |
|
|
Update: These settings in your User Options file should do the job:
| Code: | tab.size.*.bas=2
indent.size.*.bas=2 |
|
|
| Back to top |
|
 |
victorf
Joined: 01 Jan 2006
Posts: 342
Location: Schenectady, New York
|
|
Posted: 15 January 2006, 13:21 PM Post subject: |
|
|
Don,
These changes seem to do the trick. Thanks
Where can the documentation for the IDE editor be found? I see that there are several of these config files reachable from the options menu.
Vic |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2593
Location: Portland, OR
|
|
Posted: 15 January 2006, 17:44 PM Post subject: |
|
|
| Quote: | | Where can the documentation for the IDE editor be found? |
Select 'ZBasic IDE Help' on the Help menu. This will launch a browser with an HTML help file open. Near the top of that file there is a link to 'SciTE Help'. This help file describes how to configure the operation of the editor itself. |
|
| Back to top |
|
 |
|