How to force dos2unix?
Hello all,
I'm coding with a windows environment to a unix server, and using git
Most of the time, I don't have any problem, but I have an issue with my PHP code_sniffer : end of line character is invalid; expected "/n" but found "/r/n"
I googled it and I found the answer : http://forums.devnetwork.net/viewtopic.php?f=6&t=111169
It is said that on Eclipse, we can do :"Convert Line Delimiters To > Unix"
Is there an equivalent on PHPStorm?
Thx
请先登录再写评论。
Hi Arnaud,
1) To create new files with desired line endings (as it is safe to use UNIX style line endings on Windows -- PHP understands them well) plese check Settings | Code Style | General --> Line separator (for new files)
2) To convert line ending for existing files -- you can do this via custom plugin:
Thanks a lot,
That's exactly what I need!!