Formating Problem after Copy / Paste

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

Formating Problem after Copy / Paste

Postby Daniel Essl » May 8th, 2018, 1:26 pm

Hello

I have a strange problem with the new version.

I have Code with formating PHP like.
When I paste one word or variable or line the code move completly on the right side.

I have attached a File you can see.

Can anyone help?

Thanks
You do not have the required permissions to view the files attached to this post.
Daniel Essl
 
Posts: 4
Joined: March 3rd, 2018, 10:35 am

Re: Formating Problem after Copy / Paste

Postby SoundBlstr » May 8th, 2018, 8:29 pm

This also just started happening for me. I had just updated to the latest version of Visual Studio Community 15.7.0. This behavior doesn't happen for JS or CSS files, just PHP files.

I'm not 100%, but it seems like it removes all tabs and line breaks if you paste code that doesn't require being properly auto-formatted.

So, if I copy a sloppily formatted function and paste it, it works and autoformats correctly into proper tabbing, etc. But if I then copy that properly formatted function and paste it again, all the linebreaks and tabs are removed from the entire document.

Very annoying, for sure.

Unchecking all the Formatting options under Options > Text Editor > PHP > Formatting > General doesn't fix the issue. In fact, it seems to make it worse, in that now every paste removes the line breaks, even pastes that include sloppily formatted code.
SoundBlstr
 
Posts: 3
Joined: May 8th, 2018, 8:16 pm

Re: Formating Problem after Copy / Paste

Postby mindmagic » May 9th, 2018, 2:59 am

我遇到了相同的问题,希望可以尽快解决,这个问题十分影响工作效率
必须升级至最新版的vs2017(15.7)才会导致这个问题,这个问题与phptools的版本无关
mindmagic
 
Posts: 3
Joined: May 9th, 2018, 2:52 am

Re: Formating Problem after Copy / Paste

Postby Daniel Essl » May 9th, 2018, 6:11 am

BugFix from Microsoft width Update 15.7.1 on 09.05.2018

Copy / Paste works correctly again.
Daniel Essl
 
Posts: 4
Joined: March 3rd, 2018, 10:35 am

Re: Formating Problem after Copy / Paste

Postby winnet » May 9th, 2018, 7:11 am

Daniel Essl wrote:BugFix from Microsoft width Update 15.7.1 on 09.05.2018

Copy / Paste works correctly again.


I can confirm that the Update 15.7.1 does not fix that problem.
winnet
 
Posts: 1
Joined: May 9th, 2018, 7:09 am

Re: Formating Problem after Copy / Paste

Postby mindmagic » May 9th, 2018, 9:41 am

SoundBlstr wrote:This also just started happening for me. I had just updated to the latest version of Visual Studio Community 15.7.0. This behavior doesn't happen for JS or CSS files, just PHP files.

I'm not 100%, but it seems like it removes all tabs and line breaks if you paste code that doesn't require being properly auto-formatted.

So, if I copy a sloppily formatted function and paste it, it works and autoformats correctly into proper tabbing, etc. But if I then copy that properly formatted function and paste it again, all the linebreaks and tabs are removed from the entire document.

Very annoying, for sure.

Unchecking all the Formatting options under Options > Text Editor > PHP > Formatting > General doesn't fix the issue. In fact, it seems to make it worse, in that now every paste removes the line breaks, even pastes that include sloppily formatted code.


将[设置]->[文本编辑器]->[HTML]->[高级]->[粘贴时设置格式]设置为FALSE可以暂时避免这个问题
mindmagic
 
Posts: 3
Joined: May 9th, 2018, 2:52 am

Re: Formating Problem after Copy / Paste

Postby SoundBlstr » May 9th, 2018, 1:36 pm

Microsoft Update 15.7.1 on 09.05.2018 also did not fix the issue for me.

However, mindmagic's workaround worked for me until an actual fix happens:

Tools -> Options -> Text Editor -> HTML -> Advanced -> Set [Format on paste] to FALSE
SoundBlstr
 
Posts: 3
Joined: May 8th, 2018, 8:16 pm

Re: Formating Problem after Copy / Paste

Postby Miloslav Beno » May 9th, 2018, 2:07 pm

Hi,

Thanks for reporting this.

I can confirm it's caused by the recent VS update. We're analysing this and preparing the patch.

For now mindmagic workaround works. Thanks for sharing!

Thank you guys, I will ping you once we have the patch ready.

Cheers!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1198
Joined: January 7th, 2012, 8:36 pm

Re: Formating Problem after Copy / Paste

Postby Daniel Essl » May 11th, 2018, 7:52 am

Daniel Essl wrote:BugFix from Microsoft width Update 15.7.1 on 09.05.2018

Copy / Paste works correctly again.


Sorry, It is not true. This Update does not Fix the problem.
Daniel Essl
 
Posts: 4
Joined: March 3rd, 2018, 10:35 am

Re: Formating Problem after Copy / Paste

Postby Miloslav Beno » May 14th, 2018, 8:46 am

Hi guys,

Please try the latest release. We've included the fix for the formatting issue. https://www.devsense.com/download

Please let us know if that fixed it for you.

Thanks!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1198
Joined: January 7th, 2012, 8:36 pm

Next

Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 1 guest

cron

User Control Panel

Login

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 62 on January 7th, 2012, 10:54 pm

Users browsing this forum: No registered users and 1 guest
Phalanger