I have been a happy NetBeans user for a few years and I am pretty used to the keyboard shortcuts. Is there a way for import my NB preferences, and more specifically the keymap, into Eclipse? I know the opposite is possible.
PS I have to say I do not insist on using Eclipse, but I found the PyDev plugin is superior to NB's python plugin. Could you recommend any good Python IDEs that will act like NB?
How do you manage keyboard shortcuts. The main preference page can be found under Window > Preferences > General > Keys (or faster: Press Ctrl+3, type Keys and press Enter). From here you can see all commands and assign/change their associated keyboard shortcuts.
Editing and Refactoring Code in NetBeans To add a keyboard shortcut for a command: Choose Tools | Options and click the Keymap panel. In the Actions panel, navigate to a command that you want to change, and click Add. In the Add Shortcut dialog box, type in the key combination that you want to use and click OK.
shift-f6 will do it.
Netbeans' preferences can be exported in XML, but it uses different parameter names than those accepted by Eclipse. See this post for information on other python IDE's if you're considering switching beyond Eclipse.
I personally use Komodo-Edit, due to the fact it provides better-than-average code completion.
UPDATE: Sublime-Text 2 has rocked Komodo-Edit right out of my toolkit. It's not a complete IDE (neither is Komodo-Edit), but has IDE-like features that make it ideal for working in Python.
You can import key preferences in Eclipse.
Go to file -> Import -> preferences
,
There you can input a preferences file where one of the sections that this file type supports is "Key Preferences".
Now I don't know which format NetBeans uses when it exports the key prefs file, or exactly which format Eclipse recognizes (It's some xml you need to figure out), but I'm pretty sure you can:
(file->export->preferences)
the current settings.Good Luck :)
EDIT:
I just looked at my own favorite preferences file. It has a lot of lines like:
<keyBinding commandId\="org.tigris.subversion.subclipse.ui.synchronize" contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="org.eclipse.ui.defaultAcceleratorConfiguration" keySequence\="ALT+CTRL+K S"/>\r\n
You're going to have a hard time figuring out the commandId and contextId. So scratch that idea..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With