Provide SyncEdit functionality from JBuilder, Delphi and (soon) Eclipse

Hi,
There is one JBuilder/Delphi feature that I miss the most in IDEA; that is Sync-Edit:

Just select part of the code, type a key combination and enter so called sync-edit mode. When in sync-edit mode, all changes to a WORD in the selected text are automaticaly propagated to all occurancies of that word, either it is local variable, paramater, field, method name, string constant, type name etc, or XML tag name, XML attribute name, XML attribute value, etc, when editing XML.

This is simple feature not so 'smart' as most of the IDEA magic, but it is extremely useful.
For me, much more useful then IDEA Live Templates.

Eclipse community asked for this feature to be included in future Eclipse versions and they included it in the plan for the one of the next releases. IDEA should also.

5 comments

Hello Mileta,

In fact, this feature can be implemented in a third-party plugin in... let's
say, half an hour if you don't have any prior experience developing IDEA
plugins and 15 minutes if you do. Our GoogleSearch plugin demo is an excellent
starting point.

MC> There is one JBuilder/Delphi feature that I miss the most in IDEA;
MC> that is Sync-Edit:
MC> Just select part of the code, type a key combination and enter so
MC> called sync-edit mode. When in sync-edit mode, all changes to a WORD
MC> in the selected text are automaticaly propagated to all occurancies
MC> of that word, either it is local variable, paramater, field, method
MC> name, string constant, type name etc, or XML tag name, XML attribute
MC> name, XML attribute value, etc, when editing XML.
MC>
MC> This is simple feature not so 'smart' as most of the IDEA magic, but
MC> it is extremely useful. For me, much more useful then IDEA Live
MC> Templates.
MC>
MC> Eclipse community asked for this feature to be included in future
MC> Eclipse versions and they included it in the plan for the one of the
MC> next releases. IDEA should also.


--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

That sounds like an interesting challenge. I might try that when I have
some time to kill.

Bas

Dmitry Jemerov (JetBrains) wrote:

Hello Mileta,

In fact, this feature can be implemented in a third-party plugin in... let's
say, half an hour if you don't have any prior experience developing IDEA
plugins and 15 minutes if you do. Our GoogleSearch plugin demo is an excellent
starting point.

MC> There is one JBuilder/Delphi feature that I miss the most in IDEA;
MC> that is Sync-Edit:
MC> Just select part of the code, type a key combination and enter so
MC> called sync-edit mode. When in sync-edit mode, all changes to a WORD
MC> in the selected text are automaticaly propagated to all occurancies
MC> of that word, either it is local variable, paramater, field, method
MC> name, string constant, type name etc, or XML tag name, XML attribute
MC> name, XML attribute value, etc, when editing XML.
MC>
MC> This is simple feature not so 'smart' as most of the IDEA magic, but
MC> it is extremely useful. For me, much more useful then IDEA Live
MC> Templates.
MC>
MC> Eclipse community asked for this feature to be included in future
MC> Eclipse versions and they included it in the plan for the one of the
MC> next releases. IDEA should also.

0

In fact, this feature can be implemented in a
third-party plugin in... let's
say, half an hour if you don't have any prior
experience developing IDEA
plugins and 15 minutes if you do. Our GoogleSearch
plugin demo is an excellent
starting point.



Great to hear this, I'll give it a try in some of the comming nights ;) (no time for that during day). I suppose I will need half an hour :) (no IDEA plugin experience)

0

Hello Bas,

To clarify things a bit: correctly implementing all features of our LiveTemplates
(highlight boxes, correct Home/End handling and so on) will take longer.
The 15 minutes is for the most basic version: type a character to modify
all words in region, Enter/Esc to exit SyncEdit mode.

BL> That sounds like an interesting challenge. I might try that when I
BL> have some time to kill.
BL>
BL> Bas
BL>
BL> Dmitry Jemerov (JetBrains) wrote:
BL>
>> Hello Mileta,
>>
>> In fact, this feature can be implemented in a third-party plugin
>> in... let's say, half an hour if you don't have any prior experience
>> developing IDEA plugins and 15 minutes if you do. Our GoogleSearch
>> plugin demo is an excellent starting point.
>>
>> MC> There is one JBuilder/Delphi feature that I miss the most in
>> IDEA;
>> MC> that is Sync-Edit:
>> MC> Just select part of the code, type a key combination and enter so
>> MC> called sync-edit mode. When in sync-edit mode, all changes to a
>> WORD
>> MC> in the selected text are automaticaly propagated to all
>> occurancies
>> MC> of that word, either it is local variable, paramater, field,
>> method
>> MC> name, string constant, type name etc, or XML tag name, XML
>> attribute
>> MC> name, XML attribute value, etc, when editing XML.
>> MC>
>> MC> This is simple feature not so 'smart' as most of the IDEA magic,
>> but
>> MC> it is extremely useful. For me, much more useful then IDEA Live
>> MC> Templates.
>> MC>
>> MC> Eclipse community asked for this feature to be included in future
>> MC> Eclipse versions and they included it in the plan for the one of
>> the
>> MC> next releases. IDEA should also.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

Dmitry Jemerov (JetBrains) wrote:

Hello Bas,

To clarify things a bit: correctly implementing all features of our
LiveTemplates (highlight boxes, correct Home/End handling and so on)
will take longer. The 15 minutes is for the most basic version: type a
character to modify all words in region, Enter/Esc to exit SyncEdit mode.

BL> That sounds like an interesting challenge. I might try that when I
BL> have some time to kill.
BL> BL> Bas
BL> BL> Dmitry Jemerov (JetBrains) wrote:
BL>

>>> Hello Mileta,
>>>
>>> In fact, this feature can be implemented in a third-party plugin
>>> in... let's say, half an hour if you don't have any prior experience
>>> developing IDEA plugins and 15 minutes if you do. Our GoogleSearch
>>> plugin demo is an excellent starting point.
>>>
>>> MC> There is one JBuilder/Delphi feature that I miss the most in
>>> IDEA;
>>> MC> that is Sync-Edit:
>>> MC> Just select part of the code, type a key combination and enter so
>>> MC> called sync-edit mode. When in sync-edit mode, all changes to a
>>> WORD
>>> MC> in the selected text are automaticaly propagated to all
>>> occurancies
>>> MC> of that word, either it is local variable, paramater, field,
>>> method
>>> MC> name, string constant, type name etc, or XML tag name, XML
>>> attribute
>>> MC> name, XML attribute value, etc, when editing XML.

OK, you threw down the gauntlet, and I had a go - first version
downloadable now from the plugin manager.

I must say it took a lot more than 15 mins, although that could be just
me... but then I did implement the more advanced features you were
talking about. I did find the tutorial and the new plugin writing
support in IDEA very useful though - it's a lot easier to get going than
in the old days!

Hope this is something towards what you wanted Mileta.

Cheers,
N.

0

Please sign in to leave a comment.