Macros with Resharper are slow.

I am using macros to generate some code.
In the end of each macros I have these lines.

Dim slct As TextSelection

slct = ActiveDocument().Selection()

slct.Text = result + CrLf

result is few (3-15) lines of text.

The last line is very slow just a little faster then typing by hand. If R#
is disabled then this lines works in split second. Is there something could
be done about it?

Thank you,

Shimon.




1 comment
Comment actions Permalink

Hello Shimon,

that's odd, we'll try to repeat it. ReSharper reacts to the document changes
generated by the third line
of your macro, but this shouldn't take that long.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I am using macros to generate some code.
In the end of each macros I have these lines.
Dim slct As TextSelection

slct = ActiveDocument().Selection()

slct.Text = result + CrLf

result is few (3-15) lines of text.

The last line is very slow just a little faster then typing by hand.
If R# is disabled then this lines works in split second. Is there
something could be done about it?

Thank you,

Shimon.



0

Please sign in to leave a comment.