PureForm
PureForm

Reputation: 1003

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. 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: enter image description here

I press the enter key, it indents on the next line (which I don't want it to do): enter image description here

This is how I want it to function (the caret is on the left margin, no tabs were added): enter image description here

Any ideas on how to get this to function this way?

Upvotes: 0

Views: 951

Answers (1)

jjasongao
jjasongao

Reputation: 1

Preference->Editor->Code Style->PHP->Other->check "indent code in PHP tags".

Upvotes: -1

Related Questions