ReSharper deleting line endings on Enter
Hi!
(Don't really know what a good subject line for this is. Sorry.)
I am adding some code to existing code. Let's say I have the following:
byte[] buffer = uniEncoding.GetBytes("This is a test");
MemoryStream ms = new MemoryStream(100);
ms.Write(buffer, 0, buffer.Length);
ms.Close();
Now, I want to insert a line between the Write and the Close. I type "ms."
and ReSharper shows what methods can be used.
byte[] buffer = uniEncoding.GetBytes("This is a test");
MemoryStream ms = new MemoryStream(100);
ms.Write(buffer, 0, buffer.Length);
ms.
ms.Close();
After selecting "Seek" from the popup list, if I press the Tab key, I get:
byte[] buffer = uniEncoding.GetBytes("This is a test");
MemoryStream ms = new MemoryStream(100);
ms.Write(buffer, 0, buffer.Length);
ms.Seek();
ms.Close();
However, if I press the Enter key (like I'm used to doing with VS.NET), I
get:
byte[] buffer = uniEncoding.GetBytes("This is a test");
MemoryStream ms = new MemoryStream(100);
ms.Write(buffer, 0, buffer.Length);
ms.Seek(ms.Close()).Close();
This appears to be a bug. I have verified that I am in insert mode (vs
overwrite). Any ideas?
thanks,
randy
Please sign in to leave a comment.
Yes, this is bug in the feature I wrote for Michael. It's fixed in 66 which
we're going to publish today.
--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Randy Bratton" <nospam@nospam.com> wrote in message
news:c12guk$hna$1@is.intellij.net...
>
>
>
>
"ms."
>
>
>
>
>
>
>
>
>
Hi Oleg,
Thanks for the information. I will test again when release 66 is available.
thanks,
randy
"Oleg Stepanov (JetBrains)" <Oleg.Stepanov@JetBrains.Com> wrote in message
news:c12h17$i32$1@is.intellij.net...
which
>