The OMNeT++ IDE comes with a C/C++ editor. In addition to standard editing features, the C/C++ editor provides syntax highlighting, content assistance, and other C++ specific functionality. The source is continually parsed as you type, and errors and warnings are displayed as markers on the editor rulers.
The C++ source editor provides the usual features of Eclipse-based text editors, such as syntax highlighting, clipboard cut/copy/paste, unlimited undo/redo, folding, find/replace and incremental search.
The IDE scans and indexes the C++ files in your project in the background, and provides navigation and code analysis features on top of that knowledge; this database is kept up to date as you edit the source.
Some of the most useful features of the source editor:
Undo (Ctrl+Z), Redo (Ctrl+Y)
Switch between a C++ source and its matching header file (Ctrl+TAB)
Indent/unindent code blocks (TAB/Shift+TAB)
Correct indentation (Ctrl+I)
Move lines (Alt+UP/DOWN)
Find (Ctrl+F), incremental search (Ctrl+J)
The following functions can help you explore the IDE:
Ctrl+Shift+L pops up a window that lists all keyboard bindings, and
Ctrl+3 brings up a filtered list of all available commands.
Hovering the mouse over an identifier will display its declaration and the documentation comment in a "tooltip" window. The window can be made persistent by hitting F2.
If you are on Ubuntu and you see all-black tooltips, you need to change the tooltip colors in Ubuntu; see the Ubuntu chapter of the OMNeT++ Installation Guide for details.
If you need help, just press Ctrl+SPACE. The editor will offer possible completions (variable names, type names, argument lists, etc.).
Hitting F3 or holding the Ctrl key and clicking an identifier will jump to the definition/declaration.
The Eclipse platform's bookmarking and navigation history facilities are also available in the C++ editor.
To comment out the selected lines, press Ctrl+/. To remove the comment, press Ctrl+/ again.
Pressing Ctrl+Shift+T will bring up the Open Element dialog which lets you type a class name, method name or other identifier, and opens its declaration in a new editor.
The editor offers various ways to explore the code: Open Declaration (F3), Open Type Hierarchy (F4), Open Call Hierarchy (Ctrl+Alt+H), Quick Outline (Ctrl+O), Quick Type Hierarchy (Ctrl+T), Explore Macro Expansion (Ctrl+=), Search for References (Ctrl+Shift+G), etc.
Dropping a C++ file into the Include Browser View displays the include files used by the C++ file (either directly or indirectly).
During source editing, the Outline View gives you an overview of the structure of your source file and can be used to quickly navigate inside the file.