1

Topic: Resharper, ViEmu and XML comments

I suspect this is a problem with Resharper and I intend to report it there too, but I don't really know at which end a fix is more feasible.

Basically, if I hit enter while the cursor is anywhere inside a C# XML comment, regardless of ViEmu mode, something - probably Resharper - shoves a line-break in at the cursor. I've only observed this in XML comments, and only when Resharper is enabled. I'm not sure why Resharper interferes with this and only with this, because it provides no obvious extra functionality over Visual Studio in this scenario.

Example:

Insert this somewhere in a C# file:

/// abcdef

If you position the cursor on the third "/" and press enter while in normal mode, nothing will be inserted and the cursor will jump down to the next line, as expected. If you instead position the cursor on the letter "d" (for example), when you press enter a carriage return is inserted at the cursor position:

/// abc
/// def

The same happens if you press enter while typing an ex command. None of this happens if Resharper is disabled.

Last edited by Weeble (2011-03-16 14:56:15)

2

Re: Resharper, ViEmu and XML comments

I found an entry for this in their bug tracker.

http://youtrack.jetbrains.net/issue/RSRP-200918

3

Re: Resharper, ViEmu and XML comments

Hi weeble

You can find more information about this issue here:
http://www.viemu.com/forum/viewtopic.php?id=2940

Regards.

4

Re: Resharper, ViEmu and XML comments

It seems I can work around this by unchecking Resharper's option "Auto-insert closing brace". When that is unchecked I seem, so far, to get the expected correct behaviour.

5

Re: Resharper, ViEmu and XML comments

Thank you, Weeble, that is a huge find...

6

Re: Resharper, ViEmu and XML comments

Thanks Weeble