David Warnock wrote:
> CVS normally automatically fixes this. We have both linux and windows
> developers on common projects, each sees the appropriate line endings.
>
> You should be able to use what is natural for your system with me seeing
> just \ and you seeing both \r\n.
>
> Problems can arise if you check out on one OS and then edit on another
> or ad new windows files from linux (and I guess the otherway round as
> well).
It seems Matt was the main culprit here, and he have fixed his stuff
now. (He was using WinCVS with inappropriate settings that un-did the
automatic conversion).
>> * Use a tab setting of 3, expanding into *spaces*, not the tab character
>
> Are there some documented coding standards for the project?
No, just following the style I have used (i.e. the majority of the
code). I basically use the Sun conventions, with exception for braces.
> Are 4 spaces
> a major problem as all other projects I work on have that as their
> standard and it is a PITA remembering to change editor settings all the
> time - of course such a problem would only exist on a new file as all
> programmers keep to the existing style when editing existing files ;-)
If I see 4 spaces in a file I often just do "Reformat all" in IntelliJ
which will reformat it to 3 spaces. It's not *that* a big deal, but if
you have a choice, 3 is the way to go.
/Rickard
--
Rickard Öberg
|