<type>documentation</type>
<domain>edit</domain>
<id>notes-on-copy-paste</id>
<title>Copy/Paste</title>
<date>$Date$</date>
<version>$Revision$</version>
<product>all</product>

There are several ways to cut, copy, and paste text in the editor:

* Use the ``Edit`` menu items or their key bindings.  This stores the copy/cut text in 
  the system clipboard and can be pasted into or copied from other applications.
* Right-click on the editor surface and use the items in the context menu.
* Select a range of text and drag and drop it.
* On Linux, select text anywhere on the display and then click with the middle
  mouse button to insert it at the point of click.
* On Windows and Mac OS X, click with the middle mouse button to paste.
  This behavior may be disabled via the `Editor > Clipboard > Middle Mouse 
  Paste <script:show_preferences_gui#prefname="edit.middle-mouse-paste">`__ preference
* Use emulated key bindings for the current keyboard personality, such as
  ``Ctrl-K`` for Emacs and named text registers for ``VI/Vim``.  Note that some
  of these copy text to a private clipboard and not the system clipboard.
	
**Smart Copy**

Wing can be configured to copy or cut the whole current line when there is no
selection on the editor. This is done with the `Editor > Clipboard > On Empty Selection
<script:show_preferences_gui#prefname="edit.smart-clipboard">`__ preference. 
The default is to use the whole line on copy but not cut.

**Indent on Paste**

Wing can adjust intentation style, size, and position when pasting lines of text into the
editor. See `Auto-Indent <ref:edit/auto-indent>`__ for details.
