Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php code not indenting in adobe brackets

I am using Adobe Brackets 1.0 code editor.

I have .php pages that include HTML & PHP lines.

HTML lines indenting fine BUT PHP lines do not indent correctly!

is there any extension or way to force PHP lines to indent correctly?

I've used and tried the following extensions but non of them did the job:

  1. [PHP-SIG] PHP SmartHints
  2. PHP Syntax Hint
  3. QuickDocsPHP
  4. QuickDocsRegEx
  5. Tab tags
  6. WordHint

Thanks

P.S. I can't believe such good editor lack this important feature & functionality out-of-the-box.


UPDATE after Nicolò's answer:

  1. Before using "Indentator" extension (Manual indentation)

enter image description here

  1. After installing "Indentator" extension and applying Ctrl + Alt + i

enter image description here

like image 577
SULTAN Avatar asked Nov 18 '14 10:11

SULTAN


Video Answer


1 Answers

Try to install the "Indentator" extension and press Ctrl+Alt+i

UPDATE After SULTAN's update:

There is an issue on GitHub about this problem: https://github.com/adobe/brackets/issues/10038

like image 187
Nicolò Avatar answered Sep 22 '22 10:09

Nicolò