为什么Notepad ++会显示不存在的奇怪缩进?

时间:2015-09-02 12:59:03

标签: notepad++ text-editor notepad

最近我注意到自从我更新了Notepad ++以来发生了一些奇怪的事情。

例如,请参阅下面代码段中显示的奇怪缩进,由于某种原因,脚本打开和关闭标记显示在不同的位置,即使Notepad ++确认它们都以相同的列号开头。

enter image description here

我可以将该代码块复制并粘贴到另一个代码编辑器中,例如普通的记事本,它看起来是正确的。

enter image description here

如何告诉Notepad ++停止搞乱这样的文件? : - )

1 个答案:

答案 0 :(得分:0)

这是由于tab size设置为1.(即使您已将选项卡设置为选中的空格)。

tab size更改为2.

enter image description here

这是你拥有它的。

<强>之前

enter image description here

<强>后

enter image description here

相关问题