热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

EclipseIDE中的Emacs键绑定-EmacskeybindinginEclipseIDE

IamanEmacsloverprobablybecauseIlovethekeybindingandIamabletodothingsveryquickly.

I am an Emacs lover probably because I love the key binding and I am able to do things very quickly. I also use Eclipse IDE for my Java/Android/Python/ development because it is free, most of my peers use it, and it works. I find myself switching between emacs and Eclipse and the workflow just isn't great. What I would like to do is setup the key bindings in Eclipse so that they are like Emacs.

我是Emacs的爱人,可能是因为我喜欢键绑定,我能够很快地做事。我也使用Eclipse IDE进行Java / Android / Python /开发,因为它是免费的,我的大多数同行都使用它,并且它可以工作。我发现自己在emacs和Eclipse之间切换,工作流程并不是很好。我想要做的是在Eclipse中设置键绑定,使它们像Emacs一样。

Can someone suggest the best Eclipse plugin I could use for this. Or can anyone talk about how they've used Eclipse to be more Emacs like. Thanks in advance

有人可以建议我可以使用的最好的Eclipse插件。或者任何人都可以谈论他们如何使用Eclipse来更像Emacs。提前致谢

5 个解决方案

#1


16  

I have to second the recommendation of Emacs+. I've been using and loving Emacs since the dawn of time and the key bindings and functionality of Emacs are hard-wired into my fingers and brain by now. Before Emacs+ came along, I found Eclipse to be a complete bear to use, as years of muscle memory and knowing how to get things done without even thinking about it, were not only useless in Eclipse, but in fact detrimental.

我必须接受Emacs +的推荐。我从一开始就一直在使用和爱Emacs,现在Emacs的键绑定和功能很难连接到我的手指和大脑。在Emacs +出现之前,我发现Eclipse是一个完整的熊,因为多年的肌肉记忆和知道如何在不考虑它的情况下完成任务,不仅在Eclipse中无用,而且实际上是有害的。

Emacs+ has fixed all of this for me. Now using Eclipse is nearly as seamless as using Emacs, plus I get all the features of a modern IDE. It's practically the best of all worlds. The only thing I still really miss from Emacs is M-q filling of "//" comments.

Emacs +为我修复了所有这些。现在使用Eclipse几乎与使用Emacs一样无缝,而且我获得了现代IDE的所有功能。它几乎是所有世界中最好的。我仍然非常怀念Emacs的是M-q填写“//”评论。

I should also point out that this is far more than a simple set of key-bindings. It faithfully reproduces a lot of subtle Emacs behavior that you take for granted, until it's not there.

我还应该指出,这不仅仅是一组简单的键绑定。它忠实地再现了许多你认为理所当然的微妙的Emacs行为,直到它不存在。

#2


36  

No plugin needed for basic Emacs keybindings!

基本的Emacs键绑定不需要插件!

Go to

    Windows → Preferences → General → Keys

Windows→首选项→常规→键

and select Emacs scheme.


    enter image description here


It won't provide all Emacs commands (obviously) but it covers the things you can't live without such as navigation, selection, cutting / pasting etc.

并选择Emacs方案。它不会提供所有Emacs命令(显然),但它涵盖了你不能没有的东西,如导航,选择,剪切/粘贴等。

#3


9  

First try turning on the Emacs key bindings in your key preferences. If that doesn't give you all that you need, then you might try installing the Emacs+ plugin. Of course, if you have any elisp customizations, I think you might be out-of-luck.

首先尝试在您的密钥首选项中打开Emacs密钥绑定。如果这不能满足您的所有需求,那么您可以尝试安装Emacs +插件。当然,如果你有任何elisp定制,我想你可能会失败。

Personally, I always prefer to just learn editor-centric way to do things so that I am not helpless when I sit at someone else's computer.

就个人而言,我总是喜欢只学习以编辑为中心的做事方式,这样当我坐在别人的电脑前时,我并非无助。

#4


3  

The Emacs+ plugin does a good bit better job providing Emacs keys than the standard Eclipse install.

与标准Eclipse安装相比,Emacs +插件在提供Emacs密钥方面做得更好。

#5


0  

I enabled the Emacs key 'scheme' as @aioobe suggested a long time ago in all my copies of Eclipse. However, recently, a new form of perverse behavior popped up in some of my Eclipse installations: I type any one of several Emacs commands, such as Ctrl-L (to center the window), and this annoying dialog box pops up, offering me the correct Emacs action for that key and another option, which comes from nothing I recognize, but is certainly NOT an Emacs key binding.

我启用了Emacs密钥'scheme',就像@aioobe很久以前在我的所有Eclipse副本中提出的那样。但是,最近,我的一些Eclipse安装中出现了一种新形式的反常行为:我输入了几个Emacs命令中的任何一个,例如Ctrl-L(使窗口居中),这个恼人的对话框弹出,提供给我对于该键和另一个选项的正确Emacs操作,它来自我认识到的任何内容,但肯定不是Emacs键绑定。

This is problematic for two reasons 1) it pops up out of the blue, in some but not all projects (I haven't figured out a pattern yet) 2) it is obviously a violation of the promised support of an Emacs key scheme, a violation that only emerged recently, making the Emacs support far less valuable.

这有两个原因有问题1)它突然出现,在一些但不是所有的项目中(我还没有想出一个模式)2)它显然违反了Emacs密钥方案的承诺支持,最近才出现的违规行为,使得Emacs支持的价值低得多。

Emacs support in Eclipse was never very complete, but I would like to get back to the state I had a few months ago, when Ctrl-L, Ctrl-D and Ctrl-K all worked correctly as Emacs keys w/o this annoying dialog in all projects.

Eclipse中的Emacs支持从未如此完整,但我想回到几个月前的状态,当Ctrl-L,Ctrl-D和Ctrl-K都正常工作时,Emacs键没有这个烦人的对话框在所有项目中。

If Emacs+ worked in Indigo and Juno, I would try that. But as it is...

如果Emacs +在Indigo和Juno工作,我会尝试。但是因为它......


推荐阅读
author-avatar
mobiledu2502891487
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有