Eclipse 文本编辑器拖放鼠标单击组合键
在 Eclipse 的 Java 源代码编辑器中,您可以选择一个代码块,单击鼠标将其选中,然后将该代码块拖放到代码的另一个区域中。
对于 XML、HTML 等其他文本编辑器,您无法执行此操作。我必须先按组合键,然后才能使用鼠标移动和放下所选文本。我现在有一个新的 Eclipse 设置,但我不记得组合键是什么。我尝试了 ctrl-shift、ctrl-alt、alt-shift 和 ctrl-shift-alt。它们都不起作用。我启用了拖放功能。
Eclipse 上是否还有其他东西是我在旧 Eclipse 设置中安装的,而我忘记在新 Eclipse 设置中安装的?不应该是因为文本编辑器配置有一个我启用的“启用拖放”复选框。
当然,如果您是编写 Eclipse 文本编辑器的人之一,您也应该回答这个问题:
为什么不让其他文本编辑器表现得像 Java 代码编辑器?为什么你让我们必须通过组合键来为其他编辑器执行拖放操作?让所有编辑表现出相同的行为有什么问题吗?
我用谷歌搜索,但找不到任何 Eclipse 手册可以告诉我组合键是什么。我在本地帮助文件中也找不到它。如果您要求我们使用组合键,为什么不在手册中记录下来?
抱歉,但我意识到我现在听起来有点沮丧。
In the Java source editor in Eclipse, you could select a block of code, pick it with a mouse click and drop the block of code into another area of the code.
You can't do that for other text editors like XML, HTML, etc. I had to press a key combination before I could use the mouse to move and drop the selected text. I have a new Eclipse set-up now and I can't recall what the key combination is. I tried ctrl-shift, ctrl-alt, alt-shift, and ctrl-shift-alt. None of them work. I had drag-and-drop enabled.
Is there something else on Eclipse that I had installed in my old Eclipse set-up that I forgot to install in my new Eclipse set-up? It shouldn't be because the text editor config has a check box for "enable drag and drop" which I enabled.
Of course, if you are one of those guys who wrote the eclipse text editor, you should also answer this question:
why did you not make the other text editors behave like the Java code editor? Why did you make us into having to do a key-combination to perform drag and drop for the other editors? What's wrong with having all the editors exhibit the same behaviour?
I woogled and googled and could not find any eclipse manual that would tell me what the key combination is. I also could not find it in the local help files. If you required us to use key-combination, why did you not document that in a manual?
My apologies, but I realise I sound a little frustrated now.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
文本 DnD(拖放)功能(最初由 bug 11624 2007 年)已慢慢扩展到各种编辑器,据 错误231294:
因此它仍然是“正在进行中的工作”。
相关的阻塞问题是:
The text DnD (Drag and Drop) feature (initially introduced by bug 11624 in 2007) has been slowly extended to various editors, as reported by the bug 231294:
So it is still "work in progress".
The relevant blocking issues are: