php - PHPEclipse code templates incorrect indenting -


indentation behaviour incorrect using phpeclipse code templates. if code indented @ start of template insertion, indent depth ignored , tabs used if use spaces indenting.

example: "function" code template, inserted when indent depth 4 spaces:

    function function_name( $param ) { // 4 spaces     return  ;                          // tab? }                                      // nothing! 

i specified use spaces in

window -> preferences -> phpeclipse -> php -> typing tab -> checked insert spaces tab

and

window -> preferences -> phpeclipse -> php -> formatter -> style tab -> unchecked indentation represented tab

i tried use tabs, nothing:

    function function_name( $param ) { // 1 tab     return  ;                          // 1 tab... (*sigh*) }                                      // nothing! 

i checked code template, seems correct , similar java code templates, work expected. "use code formatter" checked. , google doesn't me.

i installed eclipse java juno sr 2, 20130225-0426, , phpeclipse 1.2.3

edit: i'm wondering if pdt have working snippets.

well, pdt doesn't have bug. said in 1 comment have... don't know if wrong or pdt devs fixed bug in meanwhile.

furthermore supports newest language syntax. example, python-like array constructor

$array = [1, 2, 3]; 

is signalled error phpeclipse, while pdt accepts it.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -