Indentation and Line Width
[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]
The following guidelines provide recommendations for indentations and line widths for Microsoft code name “M” code.
Do Use Four Consecutive Space Characters for Indentations
Use four consecutive space characters for indents.
Do Not Use Tab Characters for Indentations
Different people set up tabs differently and some editors handle tabs differently. If tabs are used, the layout of code is liable to change when opened in different editors. Always use spaces when indenting.
Tip
If you use Visual Studio for writing “M” code, configure Visual Studio to insert four spaces instead of a tab when the Tab key is pressed.
Do Limit Each Line of Text in a Source File to 120 Characters
This avoids text wrapping on displays with the most commonly used monitor sizes and resolutions.