Difference between revisions of "IDE Window: Editor Options Mouse"

From Free Pascal wiki
Jump to navigationJump to search
Line 10: Line 10:
 
<br>
 
<br>
  
= How it works =
 
  
This page can be used to set the mouse configuration. This page does not follow any changes made on the advanced page, but it will display a warning if the current/advanced settings do not match the settings shown.
 
 
In order to apply the settings the appropriate button must be pressed, a warning is shown while unsaved changes exist. Saving the changes will overwrite all existing settings (or all gutter/all text settings) including those made on the advanced page.
 
  
 
= Gutter =
 
= Gutter =

Revision as of 01:14, 19 August 2009

Deutsch (de) English (en)


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



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)

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