Code Editor Changes for XE

From RAD Studio XE
Jump to: navigation, search

Go Up to What's New in Delphi and C++Builder XE


  • New Keystrokes:
    The following new keystrokes have been added for navigating between modified lines in the Code Editor:
    • CTRL+SHIFT+F7: Moves the cursor to the previous modified line (indicated by a yellow or green "change" mark in the editor gutter).
    CTRL+SHIFT+F8: Moves the cursor to the next modified line (indicated by a yellow or green "change" mark in the editor gutter).
    ALT+SHIFT+F7: Moves the cursor to the previous modified line since the most recent save (the line indicated by a yellow "change" mark in the editor gutter)
    ALT+SHIFT+F8: Moves the cursor to the next modified line since the most recent save (the line indicated by a yellow "change" mark in the editor gutter).
  • Search for Usages:
    This command can now be used without Modeling being enabled. Search for Usages allows you to find usages of classes, methods, variables, and overriding methods, derived classes and implemented interfaces in Delphi source code projects. Search for Usages can be used from the Delphi Class Explorer as well as the Code Editor.
  • Delphi Error Insight:
    Error Insight has many fixes and performance improvements, and now provides more accurate results when using generic types and array types. See Code Insight.
  • Editor Color settings:
    The foreground color of whitespace markers for tab and space are now correctly tied to the whitespace element instead of the comment color.
  • Code Completion enhancement for Live Templates:
    Code Completion now displays the description of the template in the completion list.
    For C++Builder functions with no parameters, Code Completion moves the cursor outside the parentheses when a completion is accepted.
  • Reload modified files?
    When this option is enabled, any file that is unmodified in the Code Editor is automatically and silently reloaded when the contents change on disk. If the file has been modified in the Code Editor, you are still asked if you want to discard the changes. See the Ask to reload modified files option on the Tools > Options > Editor Options page.
  • IDE Insight now includes properties in Object Inspector:
    When you use Search > IDE Insight to search the IDE, the properties of controls currently listed in the Object Inspector are now included in the search.
  • Improvements to Search > Find:
    • Entire scope: This new check box has been added to the Search bar. When this option is selected, searches are always performed from the beginning of the search scope (typically the beginning of the file, with some exceptions, noted in Find), not from the cursor position. This option is persistent and remains enabled between IDE sessions and search invocations until it is disabled. Depending on your screen resolution, this option may appear as a check box in the Search bar or in the ">>" pop-up menu on the Search bar.
      Note that Incremental Search will always search from the cursor position, regardless of this setting.
    • Search shortcuts: New shortcuts allow you to begin a search upwards or from the beginning of the file. After invoking Search > Find, type your search term and then press:
      • ENTER to search downwards (or click SearchDown.bmp on the Search bar.)
      • SHIFT+ENTER to search upwards (or click SearchUp.bmp on the Search bar.)
      • CTRL+ENTER to search from the beginning of the file (or click RestartFromBeginning.bmp on the Search bar.)
  • Hotkeys for Incremental Search initiation:
    After the search bar is activated, you can initiate a search upwards or from the beginning of the file without using the mouse to click the Search Up or Search From Beginning buttons:
    • Press SHIFT+ENTER to initiate a search upwards.
    • Press CTRL+ENTER to initiate a search from the beginning of the file.
    (ENTER continues as before, to initiate a search downwards.)
  • Highlight brace pairs:
    In Editor Options, you can choose whether to Highlight brace pairs or not. When this option is disabled, the Code Editor does not highlight opening and closing parentheses, square brackets, curly braces, or comment delimiters. This option is On by default.

See Also

Personal tools
Previous Version
In other languages