| Content assist |
Content assist provides you with a list of suggested completions for partially entered text. In the e Language editor press Ctrl+Space.
|
| Content assist for enumerated types |
You can use content assist to speed up the access to enum items. Just press Ctrl+Space.
|
| Content assist for macros |
You can use content assist to speed up the access to macros. Just press Ctrl+Space.
|
| Code templates |
Code templates are presented in content assist if applicable.
To create your own templates, go to the
|
| Matching brackets |
To find a matching bracket place the cursor after the bracket and press Ctrl+Shift+P or chose Jump To Pair Bracket from the right click menu. You can also double click after the bracket - this selects the text between the two brackets.
|
| Toggle comment |
You can toggle comment on/off for the current line or the selected lines. Press Ctrl+/ or use the action from the drop down menu on right click in editor. You can chose the Verilog or the VHDL comment style. Right click in the editor and use the switch comment style action.
|
| Format source |
Use the Format Source action from the toolbar
The whole file is formatted or the current selection, if any. |
| One key indentation |
If you press Tab once at the begining of a line, it is automatically aligned to the enclosing context. Press twice to insert a tab. |
| Reminders (TODO markers) |
When you tag a comment in e source code with TODO, a corresponding taks is automatically created as a reminder. From the Tasks View, double click on the task takes you to the TODO in the code. Same for for FIXME (higher priority) and XXX (lower priority) markers. You can also add your own tags, see the Reminders section of the documentation.
|
| Check Naming Conventions |
Naming convention violations are presented as warnings in the Problems View. You can show the Problems View from menu Window > Show View > Other > General > Problems. Double clicking on some warning will jump to the source location.
Naming conventions are automatically checked when building a project. You just need to define them:
|
| Spell checking |
You can enable spell-checking support in the e Language editor on the
General > Editors > Text Editors > Spelling
preference page. Spelling errors
are displayed in the e Language editor and corresponding Quick Fixes are available:
There is currently no dictionary included in Eclipse. The required format is just a list of words separated by new lines. Quick Fixes allow you to add new words to the dictionary on-the-fly. |
| Folding |
You can fold code sections to improve read-ability.
This is how a folded file looks like:
|
| Maximize editor |
Double-click on the editor tab to maximize editor to full window. Double-click again to restore. |
| Show line numbers |
Check Show line numbers from the
|
| Go to line |
Press Ctrl+L shortcut or double click in the status bar
|
| Back/Forward navigation |
You can navigate between editors in a browser like way using the Back/Forward Navigation
|
| Go to last edit location |
Useful when you navigated around in the code, before proceeding with the source change.
Click on Last Edit Location button
|
| Local history |
Whenever you edit a file, its previous contents are kept in the local history.
Right click in the editor and chose Compare With/Replace With > Local History....
|
| Inactive Code Highlight |
The editor marks with a colored background the areas of code which are not compiled due to preprocessing.
See the Inactive Code Highlight documentation section.
|
| Macro Expansion |
You can apply preprocessing for a macro called in your code. Place the cursor on the macro, then right click -> Macros -> Expand All Levels to inspect the expanded macro in a new file.
You can also expand/collapse macros inline using Ctrl Shift = respectively Ctrl Shift -.
|
| Quick Macro Inspect |
You can quickly inspect macro reparsing if you go with the mouse over the macro marker which appears on the left bar. A tooltip appears showing how the macro is reparsed.
|
| Tooltips |
When you position the mouse over a type, method, field etc., a tooltip will pop-up showing information on corresponding declaration.
|
| Hyperlinks |
If you place the mouse over a type, method, field etc. and press the Ctrl key, a hyperlink will be presented. Click on the hyperlink to jump to definition. You can also jump to a definition if you put the cursor on the relevant name and press F3.
|
| Inheritance tree and members (Hierarchy View) |
You can view the inheritance tree and all the members of a struct by placing the mouse over it and pressing the F4 key.
|
| Instance tree of a unit (Instance Tree View) |
You can view the instance tree of a unit (including ports) by placing the mouse over it and pressing Shift+F4.
|
| Class Diagrams |
You can create class diagrams to inspect or document the architecture of a verification environment.
|
| Macro Hyperlinks and Tooltips |
If you place the mouse over a macro you'll see a tooltip with the documentation. Define as macro tooltip example:
Preprocessing define tooltip example:
If you press the Ctrl key, a hyperlink will be presented. Click on the hyperlink to jump to definition. You can also jump to a definition if you put the cursor on the relevant name and press F3.
|
| Scope |
Your current scope (in which method or struct you are editing) is always presented in the status bar.
|
| Quick Types |
You can quickly open a specific type definition.
Press Ctrl+Shift+T or press the
Open Type button The Quick Types View will pop-up and you can enter any regular expression to locate a type. Select and press Enter or click to jump to its definition.
|
| Quick Macros |
Press Ctrl+P to open the Quick Macros View which presents available macros, both preprocessing and define as. You can enter any regular expression to locate a macro and jump to its definition (select and press Enter or click).
|
| Quick Outline |
Press Ctrl+O to open the Quick Outline which presents an overview of your file. You can enter any regular expression to locate a place to jump in the current file.
|
| Quick Layers |
Press Ctrl+Shift+O with the cursor positioned on the name to quickly see extensions.
|
| Quick Load Order |
You can quickly open a file which is imported via the top files. Just press Ctrl+I. The Quick Import View will pop-up and you can enter any regular expression to locate a file. Select and press Enter or click to open the file.
|
| Quick Hierarchy |
Position the cursor on the struct name and press Ctrl+T to see the Quick Hierarchy View.
|
| Layers |
You can view all the extensions (layers) of a specific type, method, event etc.
|
| Event Layers |
Layers include on and cover definition.
|
| Types |
You can view all the types (enums, structs) in the project (including each struct fields, methods etc.) in the Types View.
|
| Checks |
You can view all the checks ("check that", "expect", "assert", "assume") in the project in the Checks View.
|
| Coverage |
You can browse all the coverage definitions in the project using the Coverage View.
|
| Macros |
You can see the macros in your project in the Macros View.
|
| Load Order |
You can see the load order of the files in your project in the Load Order View.
|
| Outline |
You can see the summary contents of the current file (structs, field, methods) in the Outline View. Open the view from menu Window > Show View > Other... > General > Outline.
|
| Mark occurrences |
When working in the e Language editor, turn on Mark Occurrences in the toolbar
|
| Bookmarks |
Similar with a web browser, you can add bookmarks in your code without altering the code.
Specify a meaningful name:
You can jump to bookmarks from Bookmarks View. Open the view from menu Window > Show View > Other... > General > Bookmarks.
|