Eclipse支持虚拟空白吗? [英] Does Eclipse support Virtual White space?

查看:140
本文介绍了Eclipse支持虚拟空白吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不久之后,我将加入一家非常依赖Eclipse进行Java开发的公司。对于我自己的开发,我已经使用其他工具,所以我现在在开始合同之前熟悉Eclipse。

Shortly I will be joining a company that relies heavily on Eclipse for Java development. For my own development I've used other tools exclusively so I am now getting acquainted with Eclipse before I begin my contract.

我已经习惯了其中一个功能是虚拟空白。这允许您单击给定文本区域中的任意位置,然后开始输入。如果在光标之前没有空格存在,它将自动填写。您可以使用文本编辑器ConTEXT或Visual Studio的编辑器设置中的打开来查看此行为的示例。

One of the features I've grown accustomed to is Virtual White space. This allows you to click anywhere in a given text area and begin typing. If no white space exists up until your cursor, it will automatically be filled in. You can see an example of this behavior with the text editor ConTEXT or by turning in on in the Editor settings of Visual Studio.

我在Eclipse中找不到一个选项。有没有选择我缺少或将不得不搜索插件来启用此功能?

I can't find an option for it in Eclipse though. Is there an option I'm missing or will I have to search for a plug-in to enable this feature?

推荐答案

Eclipse 有一个插件,现在提供此功能。

Eclipse does not have a plug-in that provides this functionality right now.

TextEditor class(几乎所有Eclipse编辑器的基础),创建这样一个编辑器并不容易。

As far as I can see from the TextEditor class (the basis for almost all Eclipse editors), it will not be an easy task to create such an editor.

你可以得到通过 addMouseListener(...)可以轻松地点击 - 但是没有办法添加空格编辑器的文档没有它是一个单独的可撤销操作来更改文档。这必须是额外的要求。

You can get the Point of the click easily - via addMouseListener(...) - but there are no way to add spaces to the document of the editor without it being an separate undoable operation that changes the document. Which must be an additional requirement.

这篇关于Eclipse支持虚拟空白吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆