"Automatically format on paste" ignores line ending setting

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

"Automatically format on paste" ignores line ending setting

Postby pocketpc_ » June 22nd, 2017, 5:08 pm

I have 'Options > Text Editor > PHP > Advanced > PHP files line endings' set to 'Unix (LF)' for PSR-2 compliance. For some reason, whenever I paste PHP code, all the line endings in the file get set to CRLF. This only happens if 'Options > Text Editor > PHP > Formatting > General > Automatically format on paste' is enabled. If I close and reopen the file, they get set back to LF as they should, but the constant line ending changes are really annoying. I also don't want to have to reformat all my pasted code.
pocketpc_
 
Posts: 1
Joined: June 22nd, 2017, 4:57 pm

Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 12 guests

cron

User Control Panel

Login

Who is online

In total there are 12 users online :: 0 registered, 0 hidden and 12 guests (based on users active over the past 5 minutes)
Most users ever online was 151 on December 6th, 2020, 7:46 am

Users browsing this forum: No registered users and 12 guests