PDA

View Full Version : remapping the tab key for indenting


picollo
09-27-2002, 04:11 AM
I am trying to use the "Customize Keyboard Shortcuts" panel in the Options menu to remap the Tab key as a shortcut to indent code. However, when I press Tab, the focus moves from "Key Shortuct" text field to the "Apply" button next to it. Does anyone know a work around to this?

Thanks a lot.

Picollo.

EnwTheGood
09-27-2002, 02:02 PM
Well, TAB automatically indents the code as long as the focus is in the editor window.

If not, the tabbing is handled by Windows and can't be changed.

You shouldn't have to change a setting!

neilhoman
11-27-2002, 04:36 AM
Is there any way of setting the tab size I cant seem to find it.
I find 4 character indents when coding a little ott.

-Neil

Smauler
01-03-2003, 07:49 AM
I've spent many (un)happy hours trying to find out how to change some of the text indenting things, with no luck. I also don't like 4 spaces per tab, 2 would suit me better (and I use this). Also, I don't like tabs at all, because they will show up differently in different applications, depending on how they are set up. This doesn't help too much if you're trying to write clear, readable code. I hate the auto indent thing to last line, because it slaps tabs everywhere I don't want them. If anyone finds out whether you can set the tabs to a different length (at least then my code would be consistent, no tabs and a couple of spaces), or better yet, replace the tabs altogether with spaces, please reply... I've been tearing my hair out over this. Otherwise, I love 1stPage.

Russell
03-04-2003, 02:04 AM
Picollo,

You will need to edit the "shortcut.ini" file, this should be located in the install folder, i.e. "C:\Program Files\Evrsoft\1st Page 2000".

If this doesn't exist you need to create a temporary keyboard shortcut in "Customise Keyboard Shortcuts" this will create the "shortcut.ini" file. The temporary shortcut can later be removed/edited if needed.

Open the "shortcut.ini" file in any text editor, such as "notepad", locate 'Indent' and set it's value to 'Tab', by just typing 'Indent=Tab'.
This technique can be used to set any shortcut to any key(s).
Hope this helps.

DCElliott
03-04-2003, 04:33 AM
A useful first post there, Russell. Hope the rest are up to the standard you have set :p

Welcome to the circus!

DE