What are some of the eclipse features in Simplicity Studio that embedded developers would find useful?
Embedded developers will find many of the standard eclipse views and features to be useful during development of embedded firmware. Some of the most useful are listed below.
The Outline view works together with the editor to provide easy and rapid location of functions and other top level statements. Selecting an entry in the Outline view will jump to that entity in the source editor.
The Outline view also provides a right-click menu that is more concise then what is presented by the editor right click menu.
The Include Browser view displays all the files included by a source file in a hierarchical manner such that the first level shows all included files, the second all files included by those files, and so on.
To open the include browser for a file, first open the file in an editor. Then, the Include Browser view can be opened with CTRL+ALT+I or by right-clicking in the Outline view and selecting Open Include Browser.
The Call Hierarchy view displays a list of all functions that call the selected function. Each function listed can be opened to display all the functions which call that function and so on.
The Call Hierarchy view is available at any time and code does not need to be running to access it.
The Call Hierarchy for a function can be access by right-clicking a function in the Outline or Editor view and selecting Open Call Hierarchy.
From time to time, embedded developers may discover cases where files have been accidentally deleted. Classic cases are unfortunate typos like "rm path/* .html", where the space causes all files to be deleted, or purging/cleaning a revision-controlled directory only to find out that you forgot to add a file that was recently created.
Most of the time, an accidentally deleted file can be recovered by right-clicking the folder where the file used to be in the Project Explorer and then selecting Restore from Local History. Eclipse will then restore the file to the state it was in the last time it was saved.
This capability does NOT extend across reloads of the IDE, but can provide a safety net for accidental deletions while the IDE is open.
CTRL+SHIFT+R will open the Open Resource dialog where the IDE will let you search for a resource (file) to be opened. For projects with many levels of directory structure, this method is often more convenient then drilling down to the file in the Project Explorer View.
An entire source file can be reformatted to conform to coding standards using Right-Click >Source > Format.
The standard used can be controlled through options found at Window > Preferences > C/C++ > CodeStyle > Formatter.
Preconfigured formatting profiles include: