Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHPStorm和混合线结束_Php_Phpstorm - Fatal编程技术网

PHPStorm和混合线结束

PHPStorm和混合线结束,php,phpstorm,Php,Phpstorm,我有一个php文件在这个文件中,我有混合行结束。 示例:1-3行使用\n,4-10行使用\r\n。我知道这很糟糕。 我尝试使用PHPStorm编辑此文件时遇到问题。PHPStorm自动将所有\r\n转换为\r\n。 是否可以关闭此功能?如果它仅从\r\n转换为\n会出现什么问题?在这种情况下,您的文件不是只使用了\n换行符吗?我还想问您为什么要使用混合换行符。也许您应该考虑您试图实现的目标并相应地编写代码。“有可能关闭此功能吗?”--没有--IDE将把所有行尾转换为从前几行检测到的行尾。您最好使

我有一个php文件在这个文件中,我有混合行结束。 示例:1-3行使用\n,4-10行使用\r\n。我知道这很糟糕。 我尝试使用PHPStorm编辑此文件时遇到问题。PHPStorm自动将所有\r\n转换为\r\n。
是否可以关闭此功能?

如果它仅从
\r\n
转换为
\n
会出现什么问题?在这种情况下,您的文件不是只使用了
\n
换行符吗?我还想问您为什么要使用混合换行符。也许您应该考虑您试图实现的目标并相应地编写代码。“有可能关闭此功能吗?”--没有--IDE将把所有行尾转换为从前几行检测到的行尾。您最好使用其他一些文本编辑器(例如Windows上的记事本+)来编辑此类文件。