Code formatting

Hi there,

I'd like to know if it's possible to use two different coding styles during a project development. What I mean is I would like to be able to see my code based on a particular scheme when I'm coding but apply a different scheme when I save it. The whole process should be done automatically. Is there any way to do that with PHPStorm ?
Thanks

2 comments
Comment actions Permalink

there is no way to get files saved and viewed using different styles - every change made to a file in IDE is synchrinized with file system. Also, adding such a virtual formattings may introduce additional problems (like lines mismatching on debugging, wrong positions, etc.) Related ticket: http://youtrack.jetbrains.com/issue/IDEA-74221

0
Comment actions Permalink

Ok Thanks. I found a solution. Actually I wanted to be able to modify my files with the new formatting just before commiting. I wrote a script for that and that will do it.

0

Please sign in to leave a comment.