Copy and paste act funny in the eap....

If I have the following code...:


if (sometest) {     log.error("test failed);      }        




If I copy this and paste it the same place, x value, I get the following..:

if (sometest) {                 log.error("test failed");                             }




Is this a known bug or is there some settings I have screwed up?


Regards,

BTJ
4 comments
Comment actions Permalink

I of course found a setting after posting the question that seems to cause this... "Reformat on paste" was set to "Indent block" and changing this to "Reformat block" worked (Might be a workaround but it work as I want... :-) )

BTJ

0
Comment actions Permalink

Hi Bjørn,

Check the "Reformat on paste" setting in Settings > IDE Settings > Editor > Smart Keys. If that is not set to one of the reformat options, you may get the type of issue you are describing. Although I would not expect it to have that issue when pasting in the same place.

And as an FYI, I'm not experiencing this in 110.3 running on Windows XP. I have my "Reformat on paste" setting set to "Reformat Block".

I hope that helps.

-Mark

p.s. I've always liked your avatar :)

0
Comment actions Permalink

oops - I guess we cross posted. Glad you solved it.

0
Comment actions Permalink

Thx... I like it too.... B-)


BTJ

0

Please sign in to leave a comment.