I too would love to see this but it does have some severe implications.  I also 
believe it should be separate to Idea as it should be able to deal with formatting of 
any code types, not just Java technologies and XML and would be most useful as a 
standalone product.

The main issue would be with formatting changes that change the line numbers upon 
which code lies.  This means that stack traces from running the code from CVS would 
not necessarily correspond to line numbers in a developer's formatted code.  Without 
making changes that affect line numbering (avoiding the problem), the tool becomes a 
lot less useful.

The way I invisage it working is to have a command line tool that performs the 
formatting.  This could be a tool that appears like CVS (or other versioning tool) and 
delegates through to a real versioning product, formatting to local style on update 
and formatting to repository style on check in.  Alternatively it could be triggered 
by the versioning tool's event mechanism where one exists.

The easiest way around the line numbers problem mentioned above would be to keep both 
the formatted and unformatted code locally so that the user is able to refer to either.

Paul.



                                                                                       
                                                                                       
   
                      "C�dric Champeau"                                                
                                                                                       
   
                      <[EMAIL PROTECTED]>         To:       
[EMAIL PROTECTED]                                                       
                       
                      Sent by:                           cc:                           
                                                                                       
   
                      [EMAIL PROTECTED]        Subject:  [Eap-features] Re: 
Codestyle on network drive                                                             
    
                      tbrains.com                                                      
                                                                                       
   
                                                                                       
                                                                                       
   
                                                                                       
                                                                                       
   
                      13/08/2002 09:57                                                 
                                                                                       
   
                      Please respond to                                                
                                                                                       
   
                      eap-features                                                     
                                                                                       
   
                                                                                       
                                                                                       
   
                                                                                       
                                                                                       
   




As it was previously discussed, I'd rather have some kind of "local" and
"group" code styles :
I wish every developer could use its own code style, but when a file is
uploaded onto the file
server or commited (via CVS), a "group" codestyle would be automatically
applied.

This implies each person could use its own codestyle, which would be
automatically applied when
downloading files. Of course, this is not without problems :

   - if the developer does not use a "perfect" code style in his file, the
retrieved file after
an upload/download sequence would lead to a different file (this may cause
problems with diff tools)
   - CVS diff would be unusable if local style is different of group style

I guess this feature is not a one we'll soon see !


"Daniel Hoppe" <[EMAIL PROTECTED]> a �crit dans le message news:
[EMAIL PROTECTED]
> Hi,
>
> I don't know if this has been mentioned before or can be achieved
> somehow already. We would really *love* to place the code style on a
> network drive so that all developers always use the same file. It's
> quite inconvenient to enforce the same code style manually on every
> workstation...
>
> Cheers,
>
> Daniel
>


_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features




--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.


_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features

Reply via email to