11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Advanced editor featuresCode TemplatesThe editor provides the ability to use code templates. A code template is a block offrequently used source code that can be inserted automatically by using a particularkey sequence. A | character is used in the template to indicate the required position ofthe cursor after the template has been expanded.To view code templates•Select Edit > Advanced > View Code Templates menu item.Code templates can either be expanded manually or automatically when the Space keyis pressed.To expand a code template manually•Type a key sequence, <strong>for</strong> example the keys c followed by b <strong>for</strong> the comment blocktemplate.•Select Edit > Advanced > Expand Template or type Ctrl+J to expand the template.To expand the template automatically•Ensure the Expand Templates On Space editor property is enabled.•Type a key sequence, <strong>for</strong> example the keys c followed by b <strong>for</strong> the comment blocktemplate.•Now type Space key to expand the template.Editing MacrosThe editor has a number of built-in macros <strong>for</strong> carrying out common editing actions.To declare a type•Select Edit > Editing Macros > Declare Or Cast To menu item <strong>for</strong> required type.To cast to a type•Select text in the editor containing expression to cast.•Select Edit > Editing Macros > Declare Or Cast To menu item <strong>for</strong> required typecast.Chapter 8Advanced editor features85

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

Saved successfully!

Ooh no, something went wrong!