|Content assist||Content assist provides you with a list of suggested completions for partially entered text. In the PSS editor press
|Content assist for enumerated types||You can use content assist to speed up the access to enum items. Just press
|Code templates||Code templates are presented in content assist if applicable.To create your own templates use the
Code Templates View or the
DVT > Code Templates preference page.
|Matching brackets||To find a matching bracket place the cursor after the bracket and press
Ctrl+Shift+P or choose
Source > 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 from the right click menu in editor
Source > Toggle Comment.
Shift + Alt + Up Arrow to incrementally expand the current selection. For example when the cursor is on a word, select the word. Press again to select the whole line. Then, each of the nested enclosing scopes is selected, for example the current action block, then the enclosing function, then the enclosing struct and so on. The same principle applies to nested enclosing parentheses, brackets and curly braces, as well as strings. Press
Shift + Alt + Down Arrow to restore the previous selection step made with
Shift + Alt + Up Arrow.
|Format source||Use the
Format Source action from the editor right click menu
Source > Format Source. The whole file is formatted or the current selection, if any.
|One key indentation||If you press
Tab once at the beginning 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 task 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 (TODO Markers) section of the documentation.
|Spell checking||You can enable spell-checking support in the PSS editor from the spelling preference page
General > Editors > Text Editors > Spelling preference page. Spelling errors are displayed in the PSS editor and corresponding Quick Fixes are available:
|Folding||You can fold code sections to improve read-ability. This is how a folded file looks like:
Folding actions (to expand or collapse) are available in the toolbar. You may also use the + or - signs on the left side of the editor. - Use
Collapse All Levels for folding to statement level. - Use
Show First Level for folding to struct member level. - Use
Expand All to fully expand the file. When you type on a folded line, it is automatically expanded. You may see the folded code in a tooltip if you move with the mouse over the
|Folding custom areas||You can define custom folding areas using comments to indicate the start and the end of the area:
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 Opens the general text editor preference page
General > Editors > Text Editors preference page
|Local history||Whenever you edit a file, its previous contents are kept in the local history. Right click in the editor and choose
Compare With/Replace With > Local History....
|Go to line||Press
Ctrl+L shortcut or
double click in the status bar to jump to a specific line.
|Back/Forward navigation||You can navigate between editors in a browser like way using the Back/Forward Navigation Back/Forward Buttons.|
|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 in the toolbar to jump to the file where you were previously editing.
|Inactive code highlight||The editor marks with a colored background the areas of code that are not active. See the
Inactive Code Highlight documentation section.
|Open file in more editors||To open multiple editors for the same file you should first open the file then use menu
Window > Editor > Clone.
|Split the editor view||To open multiple editors side by side follow these steps: - open each file in its editor; if you wish to see the same file in a split view, use menu
Window > Editor > Clone. - if you wish to split horizontally, drag the title bar of the file you want to split and drop it over the horizontal scrollbar
- if you wish to split vertically, drag the title bar of the file you want to split and drop it over the vertical scrollbar
|Column selection||You can switch to and from column (block) selection mode either by clicking on the Toggle Block Selection Mode button in the toolbar, or by using the
<Shift + Alt + A> shortcut key.