将 Netbeans 键盘映射导入 Eclipse
几年来我一直是一名快乐的 NetBeans 用户,并且非常习惯键盘快捷键。有没有办法将我的 NB 首选项(更具体地说是键盘映射)导入到 Eclipse 中?我知道相反的情况也是可能的。
PS我不得不说我并不坚持使用Eclipse,但我发现PyDev插件优于NB的python插件。你能推荐一些像NB一样好的Python IDE吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Netbeans 的首选项可以以 XML 格式导出,但它使用的参数名称与 Eclipse 接受的参数名称不同。如果您正在考虑切换其他 Python IDE,请参阅这篇文章,了解有关其他 Python IDE 的信息蚀。
我个人使用 Komodo-Edit,因为它提供了比平均水平更好的代码完成功能。
更新:Sublime-Text 2 已经将 Komodo-Edit 从我的工具包中剔除。它不是一个完整的 IDE(Komodo-Edit 也不是),但具有类似 IDE 的功能,使其非常适合在 Python 中工作。
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.
您可以在 Eclipse 中导入关键首选项。
转到
文件 ->导入->偏好设置
,您可以在其中输入首选项文件,其中该文件类型支持的部分之一是“关键首选项”。
现在我不知道 NetBeans 在导出密钥首选项文件时使用哪种格式,也不知道 Eclipse 能够识别哪种格式(这是您需要弄清楚的一些 xml),但我很确定您可以:
(文件->导出->首选项)
当前设置来设计 Eclipse 首选项文件格式(键部分)。祝你好运:)
编辑:
我只是查看了我自己最喜欢的首选项文件。它有很多行,例如:
You're将很难弄清楚commandId和contextId。所以划掉这个想法..
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:
You're going to have a hard time figuring out the commandId and contextId. So scratch that idea..
对于任何转向另一个方向(即从 Eclipse 到 Netbeans)的人,您可以设置 Netbeans 以使用 Eclipse 快捷键映射。
在 Netbeans 中选择
Tools >选项> Keymap
并从 Profile 下拉列表中选择 Eclipse 选项。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.