eclipse多个文本选择,如崇高的文字2 [英] eclipse multiple text selection like sublime text 2

查看:191
本文介绍了eclipse多个文本选择,如崇高的文字2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在升华文本中,选择一些文本,然后按Ctrl + d如果可能,将添加相同文本的下一个实例到选择。选择需要的实例后,编辑器有多个卡座(不一定在相同或相邻的列和行)。在这种模式下,可以同时向前或向后移动所有光标,并且可以同时编辑所有的文本实例。



我发现这个功能非常有用,在日食中错过了

解决方案

此Eclipse插件尝试提供此功能: https://github.com/caspark/eclipse-multicursor 。从README:


这是什么?



进程尝试为Eclipse IDE中的文本编辑器提供Sublime-Text-like
多光标支持。



有什么用?




  • 可以使用Eclipse
    链接模式编辑来同时编辑多个相同的行(类似于现有的
    功能中的重命名)



下一步




  • 选择下一个功能+相关编辑使用Eclipse链接
    模式


  • 找到下一个+相关的编辑


  • 不使用链接模式编辑不相同的文本/编辑


  • 将选择分割为


  • regexp支持查找下一个




is there an option or plugin for eclipse which would enable multiple simultaneous selections in the same editor.

In sublime text, selecting some text and then pressing Ctrl+d will add next instance of the same text to the selection if possible. After selecting the instances needed the editor has multiple carrets (not necessarily on the same or adjacent columns and rows). In this mode it is possible to move all cursors forward or back simultaneously and to edit all instances of text simuntaneously.

I find this feature very usefull and miss it sorely in eclipse..

解决方案

This Eclipse plugin attempts to provide this feature: https://github.com/caspark/eclipse-multicursor. From the README:

What is this?

A work-in-progress attempt to provide Sublime-Text-like multi cursor support for text editors in the Eclipse IDE.

What works?

  • Multiple identical lines can be edited simultaneously using Eclipse linked mode editing (similar to existing "rename in file" functionality)

Next steps

  • "select next" functionality + associated editing using Eclipse linked mode

  • "find next" + associated editing

  • editing of non-identical text / editing without using linked mode

  • split selection to lines

  • regexp support for find next

这篇关于eclipse多个文本选择,如崇高的文字2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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