Last modified 12 years ago Last modified on 02/14/11 13:46:23

Editor Settings

MeshKit (and other Fathom projects) use two spaces for indentation (no tabs). Many editors can be configured to use these settings automatically, minimizing the amount of work necessary to keep indentation consistent. Below are descriptions of how to configure this in several popular editors. If you don't see your editor here, feel free to add it.


Go to Window > Preferences > C++ > Code Style, then edit the template Tab sizes and indentation.

For Java
Window > Preferences > Java > Code Style > Formatter > Edit > Indentation = "Spaces Only"
For other editors
Window > Preferences > Editors > Text Editors > Insert spaces for tabs
In Eclipse 3.6
Window > Preferences > General > Editors > Text Editors > Insert spaces for tabs


In your .emacs file, add

(setq-default indent-tabs-mode nil)
(setq-default c-basic-offset 2)


Go to Edit > Preferences > Editor, and

  • Set Tab width to 2, and
  • Check "Insert spaces instead of tabs"


In your .vimrc file, add

set expandtab
set softtabstop = 2
set shiftwidth = 2