writing floating point numbers is just a big pain in the ass

Hello,

I write
     var x = y * 1.5;
and end up with something stupid like this
     var x = y * 1.CompareTo();

Is this R#? Is this VS2010? Is this configurable somewhere?

--
/\/\arkus.

3 comments
Comment actions Permalink

ReSharper shows auto-completion list after ".", but this shouldn'tprevent you from typing "5"

0
Comment actions Permalink

Eugene,

ReSharper shows auto-completion list after ".", but this shouldn'tprevent you from typing "5"


It doesn't prevent my from typing "5" but it silently replaces "5" with
"CompareTo()" after writing ";".

--
/\/\arkus.

0
Comment actions Permalink

Hello,

It doesn't prevent my from typing "5" but it silently replaces "5"
with "CompareTo()" after writing ";".


What are the completion list items after you type 1.5? Normally, there should
be the single item, "No suggestions", highlighted in red. In this case any
further typing, like a semicolon, shouldn't replace any of your text.

If this is not the case, I think we'd need more information on your context
and environment, because at random locations in a random C# solution this
works as expected, as I've just checked.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0

Please sign in to leave a comment.