Formatting problem on code drag & drop

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Formatting problem on code drag & drop

Postby jazz » May 25th, 2018, 2:59 am

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.
Try Hazaar MVC - http://www.hazaarmvc.com
The MVC Framework that makes PHP not suck!

Image
User avatar
jazz
 
Posts: 41
Joined: August 25th, 2016, 1:59 am
Location: Canberra, Australia

Re: Formatting problem on code drag & drop

Postby mindmagic » May 26th, 2018, 7:48 pm

mindmagic
 
Posts: 6
Joined: May 9th, 2018, 2:52 am
Location: China

Re: Formatting problem on code drag & drop

Postby jazz » May 30th, 2018, 9:41 am

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.
Try Hazaar MVC - http://www.hazaarmvc.com
The MVC Framework that makes PHP not suck!

Image
User avatar
jazz
 
Posts: 41
Joined: August 25th, 2016, 1:59 am
Location: Canberra, Australia

Re: Formatting problem on code drag & drop

Postby Miloslav Beno » June 6th, 2018, 6:32 pm

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!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Formatting problem on code drag & drop

Postby Miloslav Beno » June 7th, 2018, 1:01 pm

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
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Formatting problem on code drag & drop

Postby jazz » July 3rd, 2018, 12:32 am

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.
Try Hazaar MVC - http://www.hazaarmvc.com
The MVC Framework that makes PHP not suck!

Image
User avatar
jazz
 
Posts: 41
Joined: August 25th, 2016, 1:59 am
Location: Canberra, Australia


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 43 guests

cron

User Control Panel

Login

Who is online

In total there are 43 users online :: 0 registered, 0 hidden and 43 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 43 guests