To configure the [Home] and [End] keys of an external USB keyboard to move the cursor to the front or the end of line in Xcode, try:
1. create the following path:
~/Library/KeyBindings/
2. Create a file called DefaultKeyBinding.dict in this directory with:
{
"\UF729" = moveToBeginningOfParagraph:; // home
"\UF72B" = moveToEndOfParagraph:; // end
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end
}
With this solution, holding a [Shift] key and [Home]/[End] makes a selection for the characters to the beginning or end of the line.
References:
Remap “Home” and “End” to beginning and end of line
Mac OS X and Home / End keys
No comments:
Post a Comment