【问题标题】:Eclipse multiline cursor with skipping lines带跳线的 Eclipse 多行光标
【发布时间】:2013-08-27 10:24:00
【问题描述】:

我知道在 Eclipse 中有切换块选择。 但有时我想跳线。

int number1;
boolean exist1;
int number2;
boolean exist2;
int number3;
boolean exist3;

例如,我只想更改号码的前缀。我知道我可以使用替换,但我更喜欢使用多行光标之类的东西,但在这种方法中我需要这样的代码。

int number1;
int number2;
int number3;
boolean exist1;
boolean exist2;
boolean exist3;

如何在 Eclipse 中以简单的方式做到这一点。我更喜欢使用多个游标的方法而不是使用替换;

【问题讨论】:

    标签: eclipse coding-style ide


    【解决方案1】:

    抱歉,不能在 Eclipse 中使用多个光标。

    重新排列线条的一种便捷方法是使用组合 ALT + UP 或 ALT + 向下移动它们。

    Eclipse 的块选择模式对于大多数需要更改块排列语句的情况已经足够了,并且您可以通过这种方式轻松更改前缀或后缀。

    一个方便的扩展是 Eclipse 插件“AnyEdit”,它允许对所有当前选定的行进行排序或转换。我没有错过任何适用于 Eclipse 的文本编辑器功能。

    希望这会有所帮助:)

    问候

    克里斯托弗

    【讨论】:

    • 它在某种程度上有所帮助。谢谢
    猜你喜欢
    • 2012-05-10
    • 1970-01-01
    • 1970-01-01
    • 2014-10-23
    • 2021-12-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多