Search code examples
phpphpstormindentation

PhpStorm Code Style no first level indentation after class tag, possible?


Is it possible to tell PhpStorm that I do not want to start a new level of indention after the class tag?

I've been looking all over and there is a lot of options in Settings>Editor>Code Style>PHP but I haven't been able to find this there.

This would be an example:

<?php

class test {

public function testFunction() {
    //Look ma, first level of indention!
}

}

Solution

  • There is no such option.

    https://youtrack.jetbrains.com/issue/WI-12068 -- watch this ticket (star/vote/comment) to get notified on any progress. So far this ticket is not planned for any specific future version.