19

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?

mbatchkarov
  • 15,487
  • 9
  • 60
  • 79
  • 1
    I personnaly used to program on NB (in java especially for the RAD) which is pretty usefull but I changed to Eclipse which I found is the best IDE for python today –  Aug 24 '11 at 12:07
  • 1
    Import? Probably not. But the Keys preference page should let you manually set a lot of them. – nitind Aug 28 '11 at 13:00
  • 1
    I can see and edit lots of them, but I have not desire to manually set 50 shortcuts. Besides, it seems that some of NB's functionality is not present in Eclipse and vice versa – mbatchkarov Aug 30 '11 at 14:57
  • have you checked this post? http://stackoverflow.com/questions/836647/migrating-from-netbeans-to-eclipse – k-deux Jan 11 '12 at 13:53
  • 1
    use vim! it's the best IDE for python – Jason Yeo Jan 20 '12 at 03:42

3 Answers3

3

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.

Community
  • 1
  • 1
strongMA
  • 66
  • 8
1

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:

  1. export your keys from NetBeans
  2. Reverse Engineer the Eclipse preferences file format (the keys section) by exporting (file->export->preferences) the current settings.
  3. write code to convert NB export format to Eclipse format..

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..

Enrico
  • 621
  • 1
  • 4
  • 12
0

For anyone going in the other direction i.e. from Eclipse to Netbeans, you can setup Netbeans to use Eclipse shortcut key mappings.

In Netbeans select Tools > Options > Keymap and select the Eclipse option from the Profile dropdown list.

ferekdoley
  • 139
  • 1
  • 8
  • 2
    The question was how to import netbeans schema to Eclipse, not the other way around. – agilob Jul 22 '15 at 14:37
  • 2
    @agilob That's why I said "For anyone going in the other direction". I searched SO for "Import Eclipse keymap to netbeans" and this was the only answer in the search results. I figured someone else might find it helpful. I would have. – ferekdoley Jul 23 '15 at 15:51