How to set default indent in editor

HI !

I don't want my code to be placed hard against the left hand side. I like it 1 indent from the left when I click return. I have hunted through the docs but can not find anything. How do I set that? 

Many thanks ! 

4 comments
Comment actions Permalink

For PHP you can do that by enabling "Indent code in PHP tags" at Settings (Preferences on macOS) | Editor | Code Style | PHP | Tabs and Indents.

1
Comment actions Permalink

I'm using Vue and JS at the moment, but that works great on Vue as well, Thank you. 

0
Comment actions Permalink

I spoke too soon. 

When inside a Vue template I add say a <ul> with emmet, and the following </ul> hugs the left hand side. I have applied your fix to HTML, Vue Template and JS. 

0
Comment actions Permalink

That appears to be one these two bugs: https://youtrack.jetbrains.com/issue/WEB-47888 & https://youtrack.jetbrains.com/issue/WEB-56423. Sadly I don't see any workarounds here, but to indent manually.

0

Please sign in to leave a comment.