Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
== Code style == * Consistent usage of either ANSI-style or GNU-style braces. * Do not use tabs. Setup your editor to convert tabs to spaces. * 2 spaces per indent (tab). * Do not exceed 80 characters per line. * Delete trailing whitespace from end of line. |
Coding Guide
This page is a loose collection of various coding guides and tips for FreeSurfer programmers.
Code style
- Consistent usage of either ANSI-style or GNU-style braces.
- Do not use tabs. Setup your editor to convert tabs to spaces.
- 2 spaces per indent (tab).
- Do not exceed 80 characters per line.
- Delete trailing whitespace from end of line.
MRI Cheat Sheet
Ever wonder when you should use MRIcopy() vs MRIclone()? DougGreve has drawn up a little cheat sheet for some of these MRI functions.