Aaron Kreider
Aaron Kreider

Reputation: 1829

Zend Studio 9 messes up indentation

I'm moving my project from Zend Studio 5 to 9.

Zend 9 ruins my indentation. Previously my code was formatted to have a tab be two spaces. Now Zend is using four spaces and some lines are indented further than before.

Before:
  $a=1;
  $b=1;
  $c=1;
  for ($i=0; $i<10; $i++)
  {
    echo "test";
  }

Now
  $a=1;
    $b=1;
    $c=1;
    for ($i=0; $i<10; $i++)
    {
        echo "test";
    } 

I've tried setting the tab policy to "spaces" and the indentation size to "2". But that doesn't work.

Upvotes: 0

Views: 475

Answers (1)

Aaron Kreider
Aaron Kreider

Reputation: 1829

I fixed it by setting Displayed tab width to "2".

This is on the page: General > Editors > Text Editors

Upvotes: 1

Related Questions