IDE Window: Editor Options Mouse

From Free Pascal wiki
Jump to navigationJump to search

Deutsch (de) English (en)


  • You can get this dialog via:
Menu / Environment / Editor options / Mouse
Source editor / popup menu / Editor properties ...



General

Hide mouse when typing

If the mouse is positioned over the editor, it will be hidden while you type. Any mouse-move, click, or menu action will make it visible again.

Gutter

You can currently choose between two predefined modes for the gutter area

Standard

All left-clicks on the gutter act when you press the mouse button down.

Extended

All left-clicks on the gutter act when you release the mouse button. This mode allows the mouse to select text while being over the gutter.

  • Mouse pressed down and moved (either to other line, or into the text area), will make a selection. No action will be taken on when the mouse is released
  • Mouse pressed and released without moving it, will execute the normal gutter click action (breakpoint/fold)

Text-area

Alt-Key set column mode

Allows to make a column mode selection by holding the old key down while making a selection with the left mouse button (move mouse while left or shift left button is down). On Gnome Alt + Left Mouse is used to move a window. So you have to follow this exact sequence :

  • Alt Down
  • Left Mouse Down
  • Alt Up
  • Left Mouse Up
  • Left Mouse Down
  • Select

Right mouse includes caret move

Right mouse always triggers the context Menu. Setting the caret to the click location is optional.

Drag Selection

You can use the left mouse button to drag an existing selection to a new location in the text. Hold ctrl while dragging to make a copy.

Double click selects line

Normally double click selects a word, tripple click will select a line (leaving out leading and trailing spaces). With this option double click selects the line, tripple clicks includes the leading/trailing spaces.

Middle button

"paste selection": if you have an active selection, it (a copy) will be inserted at the point of click

Ctrl-Left Button

by default, if you click on any identifier such as a function, variable or type name the IDE will jump to the declaration of this identifier (even into another unit).

This is the same feature that is available as key-shortcut (usually alt-up). See "Key Mapping" / "Codetools" / "Find declaration"

"other block end" means that if you are not over an identifier, but instead over a "begin", "end" or matching brackets or similar then the jump will go to the matching word/bracket. On the Keyboard this is "Key Mapping" / "Codetools" / "Find block other end")

Advanced Options

For advanced options please see here: Advanced Mouse Options

Once you have made changes in the advanced settings, this page will show a warning that it does not represent your settings any more.

In this case it also will no longer just follow the changes you make. Instead it will display a button which you must use to override the settings you made in the advanced page. A warning will be shown, if you have unsaved changes.