We help IT Professionals succeed at work.
Get Started
Troubleshooting Question

How do I get PhpStorm to not auto-indent?

Bruce Gust
Bruce Gust asked
Last Modified: 2020-08-19
I've got a page that I've intentionally set up with:

.wysiwyg {
white-space: pre-wrap;

...so as I write things, the line breaks etc are reproduced just like they would be if I were writing on a piece of paper.

That said, any kind of indention is reproduced exactly as you would imagine and this is what makes PhpStorm a little inconvenient right now because it's "auto indent" dynamic" is reproduced on the web page and I don't want that.

How do I eliminate that functionality? And it doesn't need to be a "global" sort of setting, I just need it for this particular page.

How do I turn off "auto indent" on PhpStorm for this one file?

Watch Question
PHP Developer
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE