Multiple Cursors / Mass Selection and Edit

Hi,

Having a great time with IntelliJ, loving the smart features and the Darcula theme. This editor is missing one great tool that I am not so sure why you guys have not added it yet. I googled, checked the Jetbrains plugins directory but still no luck.

I am coming from the SublimeText3 editor and they have a nifty feature called Multiple cursors. Basically instead of doing a search and replace... you put your cursor over a variable, the same variable is highlighted in the active document and you start time. But the magic is... it changes all the instances in the selection automatically. Just go to http://www.sublimetext.com/ to see a demonstration of what I mean.

Any official support for this feature or a plugin or anything?

It's not patented or anything... so no need to freak out about all that.

FYI, i'm not a lawyer :p.

6 comments
Comment actions Permalink

Something like this?
http://vimeo.com/83625173


Don't worry, they are working on it. And meanwhile I am just using my prototype ;)

0
Comment actions Permalink

Awesome this is exactly what I wanted to see :D... push it out already... the prototype works great already... no need to overthink it to perfection! lol

0
Comment actions Permalink

Hello.

Regarding variables, their rename is typically done not via search and replace, but via Refactor / Rename, and IDEA has in-place mode for this action (at least in Java), that visually looks similar to multiple cursors.

But this is really not supported for wider conditions, i.e. for arbitrary piece of text and arbitrary language, so dedicated plugin really may help.

Regards,
Alexander.

0
Comment actions Permalink

All I can is to give you a link for the download, if you want. I am using it for some time and I wouldn't go back :)

0
Comment actions Permalink

Thanks for the link m8. I am bit skeptical to overwrite all the libraries and the plugins.. because the libraries may not have the same versions or random errors might occur. Do you think you can convert your codes to a standard IDEA plugin? Or may be you can give me a clue to what files you changed, etc... and I could find a way to turn it into a plugin. Thanks for the share though!

0
Comment actions Permalink

Actually, errors may show up if you update only idea.jar (if there was some API change, or if it needs some new libs), or if you copy those libs without deleting all the old ones (there are new versions of some dependencies).
The package is what idea build generates, you can do it yourself from this https://github.com/krasa/intellij-community/tree/multiEdit5 or wait for Dmitry and official version http://devnet.jetbrains.com/message/5507362#5507362
There is no chance for a plugin.

0

Please sign in to leave a comment.