11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The editor can optionally use tab characters to fill whitespace when indenting. The useof tabs <strong>for</strong> filling whitespace can be selected in the editors Language Propertieswindow.Selecting tab or space fill when indentingTo enable or disable the use of tab characters when indenting, do the following:•Select the Properties Window.•Select the Language Properties pane.•Set the Use Tabs property <strong>for</strong> the required language. Note that changing thissetting does not add or remove existing tabs from files, the change will only effectnew indents.The editor can provide assistance with source code indentation while inserting text.There are three levels of indentation assistance:•None The indentation of the source code is left to the user.•Indent This is the default. The editor maintains the current indentation level.When Return or Enter is pressed, the editor automatically moves the cursor to theindentation level of the previous line.•Smart The editor analyses the source code to compute the appropriate indentationlevel <strong>for</strong> the line. The number of lines be<strong>for</strong>e the current cursor position that areanalysed <strong>for</strong> context can be altered. The smart indent mode can be configured toeither indent open and closing braces or the lines following the braces.Changing indentation optionsTo change the indentation mode, do the following:•Select the Properties Window.•Select the Language Properties pane.•Set the Indent Mode property <strong>for</strong> the required language.To change whether opening braces are indented in smart indent mode, do thefollowing:•Select the Properties Window.•Select the Language Properties pane.•Set the Indent Opening Brace property <strong>for</strong> the required language.To change whether closing braces are indented in smart indent mode, do the following:•Select the Properties Window.•Select the Language Properties pane.78 Chapter 8 Basic editing

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!