Skip to content

Indenting of curly braces #114

Open
Open
@midsbie

Description

@midsbie

I can't seem to get php-mode to indent curly braces correctly. For instance, if the intended result is:

if(expression)
{
  statement;
}

... I always get:

if(expression)
  {                        // badly indented
    statement;
  }                        // badly indented

This with c-default-style set to linux and c-basic-offset to 2.

I've had a look in the php-mode group searching for any customizations that might affect brace indentation but didn't find any.

This can't be a bug: what am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions