Mac Os End Key Binfind Not Working For Eclipse



Key binding allow you to swap around the action of keys (or key combinations) on the Mac keyboard.

In Eclipse, key bindings should be modified in Preferences General Keys. You need to modify default bindings for commands Line Start and Line End (replace ⌘← by ↖ and ⌘→ by ↘). For selection to work, also modify Select Line Start and Select Line End. On Mac OS X Mountain Lion (10.8) and later. On OS X 10.8, you will need to modify the Info.plist file for the Eclipse executable, and then re-register the Eclipse application with the Launch Service database. In the Finder, locate the Eclipse application. Right-click on it, and click Show Package Contents. Open the Contents folder.

The default key bindings for the Home and End keys in macOS are different to most other operating systems.

To remaps the key bindings of the current user, edit the default keybinding file:
~/Library/KeyBindings/DefaultKeyBinding.dict

If they are not already in place - just create the file & directory.

Mac Os End Key Binding Not Working For Eclipse Happen

Do not edit the built-in /System/Library/KeyBindings/DefaultKeyBinding.dict file, as that will affect all user accounts on the machine. The personalized bindings will take precedence so that is all you need to edit.

The sample file below includes some help text and the codes to set Home and End to Start/End of line:

This remapping works in most Mac apps (but some like BBEdit, XCode and Firefox do their own key handling) for the terminal app see below.

After editing the DefaultKeyBinding.dict file, you will need to restart the relevant application.

Home/End mapping via Jon Evans, Start/End mapping via osxnotes.net who have lots of other remapping suggestions.

Key mapping in system preferences:

The key remapping available in system preferences allows swapping the 4 keys: Caps Lock, Control, Option and Command . This is to support non-Apple keyboards which may have the keys in a slightly different place.

Apple > System Preferences > Keyboard > Keyboard > Modifier Keys

Mac Os End Key Binding Not Working For Eclipse Without

Terminal.app

Terminal.app does not respect the macOS Key Bindings, but you can set terminal-specific keybindings in the Terminal.app preferences:

Mac Os End Key Binfind Not Working For Eclipse

Profile > Keyboard > then click + to add a keybinding

The shortcuts you’ll need to add for Home and End (via evilissimo):

ESC[H - For the Home key
ESC[F - For the End key

When you type these in (press the actual Esc key) they should appear as the following escape codes:


“There are shortcuts to happiness, and dancing is one of them” ~ Vicki Baum

Related macOS comands:

Keyboard Shortcuts - bash Terminal
Keyboard Shortcuts - macOS
Guide to customizing macOS key bindings with a .plist or .dict property list. - Jacob Rus
Text System Defaults and Key Bindings + Full list - Apple.com
Spectacle app - Shortcut keys for Maximise/Minimise.

Copyright © 1999-2021 SS64.com
Some rights reserved

Mac OS X is special. Mac OS X has it’s own nice looking user interface. But it also differs from other operating systems in the way you move the cursor with the keyboard. All those Cocoa (and most Carbon) applications respect the key bindings of Mac OS X. The key bindings are even documented in the Apple Human Interface Guidelines.

So you are in luck when you have to work with XCode, TextEdit, … but when you have to write Java code there comes….. oh yes …. Eclipse.

Eclipse is this bombastic Java IDE which looks like a Windows app on each platform it supports. The Mac seems not to be the primary platform for Eclipse.

And Eclipse does NOT respect the default key bindings of Mac OS X (a bug is already submitted). Someday when I over and over again used the Eclipse shortcuts in XCode and the Mac OS shortcuts in Eclipse I started to change the key-bindings in Eclipse to be a little bit more “Mac”.

Mac Os End Key Binding Not Working For Eclipse 7

It’s a progress in work and at the moment I changed only the bindings to move the cursor and for searching.

  • Select text to line start/end: Command-Shift-Left and Command-Shift-Right
  • End of text: Command-Down
  • Start of text: Command-Up
  • Line start/end: Command-Left and Command-Right
  • Page Down/Page Up: Option-Down and Option-Up
  • Page Down/Page Up: Option-Page-Down and Option-Page-Up
  • Previous/next word: Option-Left and Option-Right
  • Find Next: Command-G
  • Find Previous: Command-Shift-G

Mac Os End Key Binding Not Working For Eclipse Occurs

Installation:

  1. Download the File org.eclipse.ui.workbench.prefs.zip and unzip it.
  2. Copy the unzipped file org.eclipse.ui.workbench.prefs to your Workspace subdirectory “.metadata/.plugins/org.eclipse.core.runtime/.settings/”. The “.metadata” directory is by default hidden in Finder. Use the terminal to copy the file to the desired location.

Note: Eclipse shall be stopped before replacing the file. You may have done already some changes to the eclipse workbench configuration which may be lost when you replace the prefs file.It work’s for me but I am not responsible for any damage that results from using this prefs file. I’ve used this file with Eclipse 3.1.1.

If you add/change more key bindings please give me a favor and send the prefs file back to me at “martin” on this domain. I’ll link to the latest and greatest prefs file here.

Update:As Douglas mentioned in his comment below there is an easier way to share the key bindings. To use the preferences-import feature of eclipse use this preference-export-file. You have to unzip the file before importing. Thanks a lot for this tip!