Notepad ++:在空行后禁用自动缩进 [英] Notepad++: disable auto-indent after empty lines
问题描述
我发现Notepad ++的自动缩进样式有点奇怪:当我在缩进行上键入时,我 do 希望它在按Enter键后缩进下一行(这样做确实正确).但是,当我在空行上(没有缩进,没有字符)并且按Enter时,它将使用与最后一个非空行相同的缩进来缩进下一行.我觉得这很烦人.您是否遇到过此问题,并且您知道如何解决此问题吗?
I find the autoindent style of Notepad++ a little weird: when I am typing on an indented line, I do want it to indent the next line after I press Enter (this it does properly). However, when I am on an empty line (no indentation, no characters) and I press Enter, it indents the next line, using the same indentation as the last non-empty line. I find this extremely annoying; have you ever encountered this problem and do you know how to fix it?
(注意:我正在编辑HTML/PHP文件.)
(Note: I'm editing HTML/PHP files.)
(此外,如果无法更改此行为,欢迎其他优秀的HTML/PHP免费编辑器提出建议.)
(Also, suggestions of other good free editors for HTML/PHP are welcome, in case there is no way of changing this behaviour.)
推荐答案
1)如果没有NppAutoIndent插件,请先安装.
1) First install NppAutoIndent plugin if you don't have it.
插件>插件管理器>显示插件管理器,然后从该菜单的可用"标签中安装NppAutoIndent .
2)通过执行以下操作可以关闭此行为:
2) This behavior can be turned off by doing:
插件> NppAutoIndent>前一行
Plugins > NppAutoIndent > Previous line
3)如果禁用此选项,则可能需要先检查此选项:
3) If this option is disabled, you may need to first check this option:
插件> NppAutoIndent>忽略语言
Plugins > NppAutoIndent > Ignore language
这篇关于Notepad ++:在空行后禁用自动缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!