<type>wingtip</type>
<domain>editor</domain>
<id>adjust-indenting</id>
<title>Adjusting Indentation of Code</title>
<date>$Date$</date>
<version>$Revision$</version>
<product>all</product>

Wing tries to automatically reindent code when pasting or dropping it into a new location.
If the adjustment was unwanted, execute ``Undo`` once.

To create a new block with a range of existing lines of code, select the lines and press
the ``:`` key.

Code can be reindented by selecting it and pressing the ``Tab`` key. This adjusts
indentation to match the context. Multiple presses of ``Tab`` toggle between possible
positions for the selection. The `Tab Key Action
<script:show_preferences_gui#prefname="edit.tab-key-action">`__ preference can be used to
alter this behavior.

You can also analyze and alter the indentation style of files opened in the editor using
the `Indentation <ref:edit/indentation-manager>`__ tool.

There are many other indentation features and options. See `Indentation
<ref:edit/indentation>`__ details.
