1.11.9 Select modes in editor

CodeBlocks

[Contents] CodeBlocks Manual   [Search] Search

[Table of contents]

1.11.9 Select modes in editor


CodeBlocks supports different modes for selecting or pasting of strings.
  1. With the left mouse button a text in the active editor can be selected and then the mouse button can be released. With the mouse wheel the user can scroll to a position. If the middle mouse button is pressed then the formerly selected text will be inserted. This feature is available per file and can be seen a clipboard per file.
  2. Pressing the ’ALT’ key will activate the so-called block-select mode and a rectangle selection can be raised with the left mouse button. If the Alt key is released this selection can be copied or pasted. This feature is helpful if you want to select some columns e.g. of an array and copy and paste the content.
  3. In the menu ’Settings’ /’Editor’ /’Margins und Caret’ so-called ’Virtual Spaces’ can be activated. This option enables that a selection in the block select mode can start or end within an empty line.
  4. In the menu ’Settings’ /’Editor’ /’Margins und Caret’ the ’Multiple Selection’ can be activated. While holding the Ctrl-key the user can select different lines in the active editor via the left mouse button. The selections will be appended in the clipboard via the shortcut Ctrl-C or Ctrl-X. Ctrl-V will insert the content at the current cursor position. An additional option called ’Enable typing (and deleting)’ can be activated for multiple selections. This feature is useful if you want to add a pre-processor directive like #ifdef at different source lines or if you want to overwrite or replace a text at several positions.
Note:
Most Linux window managers use ALT-LeftClickDrag to move a window, so you will have to disable this window manager behavior first for block select to work.


[Previous] 1.11.8  Wrap Mode
[Next] 1.11.10  Code folding

Created: 2010/25/05 11:52   Updated: 2010/25/05 11:52
Author: HighTec EDV-Systeme GmbH
Copyright © 2010 HighTec EDV-Systeme GmbH