IntelliJ has this strange feature (bug for me) wherein if I paste text with quote marks in it inside an existing String, then my quote marks get auto-escaped.
Thus, I can end up with strange code like this:
System.out.println(" lottery distribution: \" median = \" + median + \", madm = \" + madm + \", k = \" + k + \", delta = \" + delta );
when what I want is this:
System.out.println(" lottery distribution: median = " + median + ", madm = " + madm + ", k = " + k + ", delta = " + delta );
I am using IntelliJ 8.1.3. I have searched under the Editor settings, and cannot find where to suppress this behavior. I would be very grateful if you could tell me how to suppress it.
This bug was noted 6 years ago (altho the bug vote link in the second posting there no longer works).
p.s. this forum's web interface seems to have changed. How are you supposed to format code examples? I see icons for links, images, etc, but the usual forum code icon seems to be missing. I had to hand format the font of the code snippets above, which is unacceptable in a forum devoted to programming...