[Home]EditingLinuxCNCSource

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Editing LinuxCNC Source

Style conventions

Information can be found in the docs in the Developer's Section at http://www.linuxcnc.org/docs, especially at http://linuxcnc.org/docs/devel/html/code/style-guide.html

Editing with Emacs

MH found the following settings in .emacs gives acceptable results (default indentation of 2 characters is unusable):

 (setq c-default-style
       '((other . "gnu")))
 (setq c-basic-offset 4)

Editing with Eclipse

To match the emc source style: goto c++,code style

define your own code style based on GNU

General settings: Tab policy = mixed, indentation size = 4, Tab size = 8

Editing with others

Please add.


LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions
Last edited October 26, 2017 4:09 pm by KimK (diff)
Search:
Published under a Creative Commons License