Page 1 of 1

Formatting problem on code drag & drop

PostPosted: May 25th, 2018, 2:59 am
by jazz
One of my developers just came across this (I didn't even know you could drag and drop code, but there ya go). It is pretty much exactly the same problem as the formatting problem when pasting code.

Tried this on 10846. Copy/paste is fine but drag/drop is not. Only occurs in the PHP editor (obviously).

To replicate, highlight some code in the PHP editor, then drag the code to another line in the same file. When you release the mouse button, all formatting in the file is removed.

Thanks guys.

Re: Formatting problem on code drag & drop

PostPosted: May 26th, 2018, 7:48 pm
by mindmagic

Re: Formatting problem on code drag & drop

PostPosted: May 30th, 2018, 9:41 am
by jazz
mindmagic wrote:http://support.devsense.com/viewtopic.php?f=21&t=2150


Thank you for NOT reading my post. Copy/Paste works. Drag and drop DOES NOT.

Re: Formatting problem on code drag & drop

PostPosted: June 6th, 2018, 6:32 pm
by Miloslav Beno
Hi Jazz,

Thanks for finding this. We've been able to replicate(quite easily). It's similar issue as was copy/paste which was introduced in one of the latest VS 2017 update. Let's us design workaround and get back to you.

Thanks again!

Re: Formatting problem on code drag & drop

PostPosted: June 7th, 2018, 1:01 pm
by Miloslav Beno
Hi jazz,

We've examined this and currently the only workaround for us would be just turn off Format On Paste option for HTML files and everything based on it. Actually you can do it by yourself in options, but we are hesitant to do it for everyone by default.

Much better solution is part of our HTML integration reimplementation which we are planing to do anyway.

Thanks for understanding

Re: Formatting problem on code drag & drop

PostPosted: July 3rd, 2018, 12:32 am
by jazz
No problem, Miloslav. My guys are working around it OK for now. It's just "one of those things" that trips them up occasionally. I guess just add it to the list of reasons to redo the HTML integration.

Embedded PHP in Javascript blocks is another bit reason for me, just saying. ;)

Thanks.