How to install Zend Studio 10.0.1 to use tab spaces in PHP files?

I set the following options:

General / Editors / Text Editors - Insert spaces for tabs [checked]

PHP / Code Style / Formatter - Edit Eclipse profile [built-in], rename profile to Eclipse [mine] - Indent (tab) - Tab policy: [Only spaces]

But he still uses tabs for indentation.

+4
source share
2 answers

Another parameter you need to change is the html files:

Window-> Settings-> Web-> HTML Files-> Editor-> Indents Using Spaces

So, in short, these are the necessary steps:

  • Window-> Settings-> General-> Editors-> Text Editors-> Insert Spaces for Tabs
  • Window-> Settings-> Web-> HTML Files-> Editor-> Indent
  • Window-> Preferences-> PHP-> Code Style-> Formatter and create a new profile

Here is a good post describing each step, hope this helps:

Zend Studio - insert spaces for tabs

+2
source

Aptana Studio 3 was the reason for this behavior. Obviously, he set some eclipse settings that contradict Zend Studio. Removing Aptana and reinstalling Zend Studio solved this problem.

+1
source

Source: https://habr.com/ru/post/1481054/


All Articles