-
Notifications
You must be signed in to change notification settings - Fork 2
Code Selection
Some part of code can be selected within the Eclipse code editor, which programmers naturally do, for example when copying or deleting a block of code.
Although this selection mechanism itself is not a new feature, Azurite provides a number of commands that operate on the currently selected code in the editor.
Main menu:
Timeline toolbar:
Editor context menu (right-click on the code editor):
These menus are enabled only if there is some code selected in the active code editor.
This command searches through the history for all the edit operations performed on the currently selected region of code. The resulting rectangles are highlighted on the Timeline view.
With the resulting rectangle selection, you can invoke other commands that operate on the selected rectangles, such as Selective Undo.
This command undoes all the edits performed on the selected region of code, which is a shortcut for Select Corresponding Rectangles followed by Selective Undo.
This undo command is a form of Selective Undo, because it does NOT undo the other edits performed outside the selected region. This is a significant benefit over the traditional undo command (^Z), which can only undo all the intermixed edits together, in reverse chronological order.
The resulting changes from this undo command are also added to the end of the history, so that this undo command can also be undone in the future, if needed.
Shortcut Key: (⌥⇧⌘Z on Mac, Ctrl+Alt+Shift+Z on Others)
Similar to the previous command, this command undoes the edits performed on the selected region of code, one edit at a time. You can select a region of code, invoke this command one or more times until the selected code gets back to the desired version.
Although it can be invoked from the menu, it is intended to be used with the shortcut key.
This command launches a Code History Diff View, where you can see the fine-grained evolution history in a side-by-side diff panel. See Code History Diff View for more details.
- Prev: Selection Modes & Commands
- Next: Rectangle Selection




