Bruce Gust
asked on
How do I get PhpStorm to not auto-indent?
I've got a page that I've intentionally set up with:
.wysiwyg {
white-space: pre-wrap;
padding-left:5px;
}
...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?
Thanks!
.wysiwyg {
white-space: pre-wrap;
padding-left:5px;
}
...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?
Thanks!
ASKER
Not working, friend! And I've gone out to the "Code Editor -> PHP -> Tabs and Indents and it STILL auto indents after a carriage return.
Not sure how to get around this. I've reached out to JetBrains and we'll see if we don't get a response.
Not sure how to get around this. I've reached out to JetBrains and we'll see if we don't get a response.
ASKER
One of the first thing I can point out is that you're not editing PHP; you're editing HTML. Try playing with the code style settings for HTML instead. PHPStorm is aware of the different contexts, such as inside a `<?php` tag, inside a comment block, inside heredoc blocks, etc.
ASKER
I figured it out, boys! File -> Settings -> General -> Smart Keys That got it done!
Thanks for your help!
Thanks for your help!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
exclude code or a file from reformatting