简体   繁体   English

PhpStorm 10,在按Enter键后不要缩进

[英]PhpStorm 10, don't indent after enter key pressed

I'm wanting PhpStorm to put the caret on the beginning / left margin of the new line when I press the enter key. 我想让PhpStorm在按Enter键时将插入符号放在新行的开头/左边距上。 Currently it indents the line according to the code above, which I don't want it to do. 目前,它根据上面的代码缩进一行,我不希望这样做。 I've dug through settings and tried multiple things, but have yet to figure out how to turn this off. 我已经浏览了设置并尝试了多种操作,但尚未弄清楚如何将其关闭。

This is how it looks. 这就是它的样子。 I have the caret at the end of the line: 我在行尾有插入符号: 在此处输入图片说明

I press the enter key, it indents on the next line (which I don't want it to do): 我按下回车键,它在下一行缩进(我不希望这样做): 在此处输入图片说明

This is how I want it to function (the caret is on the left margin, no tabs were added): 这就是我希望它起作用的方式(尖号位于左边缘,未添加任何标签): 在此处输入图片说明

Any ideas on how to get this to function this way? 关于如何使它以这种方式运行的任何想法?

首选项->编辑器->代码样式-> PHP->其他->选中“在PHP标记中缩进代码”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM