Monday, March 26, 2012

Source Insight Replace Tabs with 4 spaces

Options > Document Options
1) Set Tab width to 4
2) Select Expand Tabs

Thats it you are game!!

To verify if its set properly, you can always select "Visible Tabs", this will show the tab with visible symbol.

Source Insight Braces How to Control

http://www.sourceinsight.com/docs35/ad918598.htm

Select Simple and check both of the check boxes.
Go to Options>Document Option>Auto Ident


Auto Indenting

The auto-indenting feature controls the level of indentation as you type new text. Source Insight supports Simple and Smart types of auto-indentation. Not all languages support the Smart level.

Auto Indent Type

Specifies the type of auto-indenting. Automatic indenting occurs when you insert new lines.

None No special indenting occurs. Source Insight will return the insertion point to the very beginning of the next line when you insert a new line or word wrap.

Simple Source Insight will automatically indent text to line up with the previous or following line.

Smart Source Insight will automatically increase or decrease the indentation level when you insert new lines. Not all languages support smart indenting. If this button is selected, then the Smart Indent Options are applied.

Smart Indent Options

These check boxes determine how the smart indenting affects open and closing curly braces.

Desired Indent Style

Check box setting

if (x) { } 

Clear both boxes.

if (x)     {     } 

Select both boxes

if (x) { } 

Select Indent Open Brace;
Un-select Indent Close Brace