Re: remembering cursor position
Re: remembering cursor position
- Subject: Re: remembering cursor position
- From: Philip Aker <email@hidden>
- Date: Sat, 08 Dec 2007 02:56:05 -0800
On Dec 7, 2007, at 10:04 AM, David Ewing wrote:
On Dec 7, 2007, at 8:53 AM, David Dunham wrote:
This is the _least_ of my problems with Xcode editor windows. In
3.0, I can't even get it to type a return correctly in header
files with:
#ifdef __cplusplus
extern "C" {
#endif
| I have to type two returns and then the insertion point ends
up indented by a tab two lines down. Like at the beginning of
this line.
What is the return key bound to? (Preferences > Key Bindings >
Text Key Bindings) Furthermore, there's some sort of bug
associated with this binding, I don't recall exactly what but you
might need to delete and renter it.
Indeed that's the fix. In 3.0, if you're using the built-in
Metrowerks key bindings, the binding for "Insert Newline and
Indent" is broken. The fix is to reset the binding to the return
key (which will require you to duplicate the built-in bindings to a
new set).
I thought this was only broken if you have "Syntax-aware indenting"
turned off (though maybe I'm wrong). Philip's description of
editing in a comment makes it sound like that's turned off:
Furthermore, every time I type inside a comment:
/*! @method
@discussion blah blah
*/
It keeps on indenting the lines inside the comment by a space. I
_don't_ want any leading spaces in my comments.
It should only indent lines by a space if "Syntax-aware indenting"
is on.
Thanks Davids,
I have a slightly altered MW Template. I used to be able to tune
things (PB era) nicely by copying some sort of DefaultKeyBindings
file on disk to a folder in ~/Library but I don't know if it's still
available as an option. For instance setting the default tab-spaces
for the system to 4 instead of 8 so apps like TextEdit inherited the
setting.
I have Syntax-aware turned on only for return, and // comments the
top checkbox (I'm not on my Leo box at the moment) but I didn't
normally use it in previous versions. I'll definitely check out
"Insert Newline and Indent" fix because this stuff has been pinning
my aggravation level meter in the red for a month or so.
• All that I need for indenting is for it to be at same level as the
previous line (like CW and BBEdit/TextWrangler) and not, as you see
in my example, at a guess of the previous saved indent level.
• What I want for navigation and selection key bindings is the Mac
style where 95% of normal editing activities are handled by the
Command, Shift, and Option modifiers and the 4 arrow keys -- not page
up/down, home/end.
• What I want for scrolling is for Xcode to place the insertion
point at the bottom of the screenful when I keystroke Option-Down,
and if the insertion point is already on the last line of the page,
scroll one screenful and place the insertion point again on the last
line in the view (again just like CW/BB).
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden