Spaces VS Tabs


vi*

To use spaces instead of tabs in the vi editor, create a file named .exrc in your $HOME directory with the following contents:
set ts=4
set expandtab 
There may be some other things you'll want to put there. set ai for instance is a handy thing.

*Note: The expandtab option is only known to be valid for the vim version of vi. If you're using some other version, you really should switch anyway because vim generally seems to be much better than the others.


emacs

To make emacs use spaces instead of tabs, put this in your .emacs file:
(defun set-ifleet-tabs-hook ()
  (setq tab-width 4
        indent-tabs-mode nil)
  )
(add-hook 'c-mode-common-hook 'set-ifleet-tabs-hook) 

Microsoft Developer Studio

Select Tools, then Options from the menu, and then click on the Tabs tab. Set Tab Size and Indent Size to 4 and select the Insert spaces radio button. Click OK.


Last modified: Sat Jul 17 17:58:30 EDT 1999