0

it is kinda hard to explain what I am talking about

easier is have a look at this video at minute 18:50 until 19:00

sublime's nifty text block select and change

he selects a text block, then selects other text blocks with it, and changes them all together at once

is there something like this in intellij or eclipse?

Toskan
  • 13,911
  • 14
  • 95
  • 185
  • php or java, doesn't matter – Toskan Jan 07 '14 at 05:47
  • With Eclipse 4.22 (Q4 2021), see also "[Eclipse - multiple line editing on any substring like in Sublime Text and Atom](https://stackoverflow.com/a/70316624/6309)". – VonC Dec 11 '21 at 16:26

2 Answers2

3

What you want is called Multiple Selections, and it is not yet implemented in official IntelliJ, there is just my prototype which works pretty much like Sublime, and if you want, you can build it and give it a try :).

Edit: It is now implemented in some form in official IntelliJ

Meo
  • 12,020
  • 7
  • 45
  • 52
  • "you can build it and give it a try" ? you give me shivers, I see myself spending hours trying to build and use it, and it will be buggy finally. It really looks nice, is there no final plugin available for download somewhere? I am still on intellij 12.1.6, i could move to 13 no problem – Toskan Jan 08 '14 at 05:57
  • ah now I get it, this is built into the community edition of intellij. What backdraws can i expect? I am developing joomla web application software using PHP – Toskan Jan 08 '14 at 06:17
  • The only backdraws are, that you will not be able to use ultimate version (I think), and since I pull all new changes from an origin, then there might be new bugs as well as new unreleased fixes. Otherwise worst thing that can happen is that you will not use multi selections, but just normal editing. And if you trust my [reputation](http://plugins.jetbrains.com/space/index?pr=idea&lg=meo), I could give you link to already compiled build which I use at work. – Meo Jan 08 '14 at 07:29
  • But I guess you need ultimate version and PHP plugin, so tough luck. – Meo Jan 08 '14 at 07:54
  • just post the link here for other fellow coders, i fear i'll just have to wait :-S – Toskan Jan 08 '14 at 09:37
  • Rather no, by the time someone next comes across this, the build will be already old. :) – Meo Jan 08 '14 at 12:28
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/44789/discussion-between-meo-and-toskan) – Meo Jan 08 '14 at 13:56
  • @Meo Has there been any word from JetBrains on bringing the patches into the real repo? I think I'm stuck since I don't have the time to try to get IDEA to compile on my machine and it is understandable you wouldn't want to get into the business of making binaries for everyone. – ShawnFumo Feb 05 '14 at 20:37
  • @ShawnFumo They started to work on it 3 weeks ago, dunno what takes them so long with all that inspiration from me :) I already have binaries: https://www.dropbox.com/sh/roe5f7dg2alt5tk/FfB_0DpvYa – Meo Feb 05 '14 at 20:48
0

There might be an option in Eclipse to Rename In File through Quick Assist (Ctrl+1), but it usually applies to variables and not simply every occurrence of a string in the file.

vahid abdi
  • 9,636
  • 4
  • 29
  • 35
nitind
  • 19,089
  • 4
  • 34
  • 43