Project-dependent coding style

(A feature presumably for next version). How about having project-dependant coding styles?

The problem is that we have to run multiple projects at a time, and coding style sometime vary a lot depending on the client's preferences. Surely, one of the previously created IDE-wide code styles can be switched each time I open another project, but that's pain.

What if a project properties provide selection of the coding style from those already stored via IDE settings?

4 comments
Comment actions Permalink

I think what you're asking for is already there. Try Project Properties --> Miscellaneous. There is a "Use per-project coding style" option right there.

Tobin

0
Comment actions Permalink

Indeed. Thanks, Tobin!

0
Comment actions Permalink

I've seen this feature, but I'm a little confused by it. If I choose a coding style for a project, is that selection only valid for that machine? It doesn't seem that the coding style definition is packaged with the project, which means a new developer working on the project would not get the coding style definition.

We generally try to enforce a coding style on a project, so it would make more sense to include project coding style with the project configuration files.

0
Comment actions Permalink

Has any suggestion been made regarding this same kind of feature for file templates... it seems to me that file templates on a project basis would have been a first thought, rather than an after thought..

0

Please sign in to leave a comment.