[TYPO3-dev] phpStorm - inline comments moved by one tab after code line

Krystian Szymukowicz t33k at prolabium.com
Wed May 2 09:10:47 CEST 2012


W dniu 2012-05-02 08:15, Philipp Gampe wrote:
> Hi Adrien,
>
> Adrien Crivelli wrote:
>
>> Slightly off-topic, but I always wondered who came up with that
>> indentation rule and what the reasons behind it are. Anybody would care to
>> enlighten me ?
>>
>> And is it used anywhere else ? I've never seen anything similar before...
>
> I never seen it elsewhere either, but I can tell you what the use is.
>
> The additional intention really shifts the focus away from the comments and
> you can distinguish comments and code much better. Also you can /find/
> comments much faster because stay tick out (or better in) from the rest of
> the code.
>
> This is especially true if you look at the code with poor or none syntax
> highlighting.
>

The reason is good but if non of the existing IDE supports this then it 
means that either:
1) people will not use automatic reformatting (unrealistic)
or
2) everyone will obey this rule anyway because they will use automatic 
reformatting anyway

so it will be a dead rule.


-- 
grtz
Krystian Szymukowicz



More information about the TYPO3-dev mailing list