Eclipse 文本编辑器拖放鼠标单击组合键

发布于 2024-09-24 01:43:49 字数 585 浏览 0 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酷到爆炸 2024-10-01 01:43:49

文本 DnD(拖放)功能(最初由 bug 11624 2007 年)已慢慢扩展到各种编辑器,据 错误231294

在 EclipsePdt-2.2.0.v20100427 中测试
已验证修复:

  • PHP 文件
  • JS 文件

仍然可以重现:

  • CSS 文件
  • HTML 文件
  • XML 文件(源代码视图)

因此它仍然是“正在进行中的工作”。
相关的阻塞问题是:

  • bug 178104:[DND] 需要重新访问 dnd API 以允许多个放置目标
  • bug 173405 利用 IDragAndDropService (显示投票)
  • bug 195655 拖放所选文本

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:

Tested in EclipsePdt-2.2.0.v20100427
Verified fixed for:

  • PHP files
  • JS files

Still reproducible in:

  • CSS files
  • HTML files
  • XML files (source view)

So it is still "work in progress".
The relevant blocking issues are:

  • bug 178104: [DND] Need to revisit dnd API to allow multiple drop targets
  • bug 173405 Make use of IDragAndDropService (Show Votes)
  • bug 195655 Drag'n'drop selected text
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文