Keyboard Shortcuts
==================

.. note::

   Most of the below shortcuts can be changed in the :ref:`Preferences
   <keyboard-options>`.

On macOS, replace ``Ctrl`` with the ``Command`` key.

General
-------

-  ``Ctrl + N`` - Create a new map
-  ``Ctrl + O`` - Open any file or project
-  ``Ctrl + P`` - Open a file in the current project
-  ``Ctrl + Shift + T`` - Reopen a recently closed file
-  ``Ctrl + S`` - Save current document
-  ``Ctrl + Alt + S`` - Save current document to another file
-  ``Ctrl + Shift + S`` - Save all documents
-  ``Ctrl + E`` - Export current document
-  ``Ctrl + Shift + E`` - Export current document to another file
-  ``Ctrl + R`` - Reload current document
-  ``Ctrl + W`` - Close current document
-  ``Ctrl + Shift + W`` - Close all documents
-  ``Ctrl + Q`` - Quit Tiled
-  ``Ctrl + MouseWheel`` - Zoom in/out on tileset and map
-  ``Ctrl + Plus/Minus`` - Zoom in/out on map
-  ``Ctrl + 0`` - Reset zoom on map
-  ``Ctrl + /`` - Adjust zoom to fit map in view
-  ``Ctrl + Object Move`` - Toggles "Snap to Grid" temporarily
-  ``Ctrl + Object Resize`` - Keep aspect ratio
-  ``Alt + Object Resize`` - Toggles "Snap to Grid" temporarily
-  ``Middle Click`` or ``Space Bar`` - Hold to pan the map view
-  ``Ctrl + X`` - Cut (tiles, objects or properties)
-  ``Ctrl + C`` - Copy (tiles, objects or properties)
-  ``Ctrl + V`` - Paste (tiles, objects or properties)
-  ``Del`` - Delete (tiles, objects, properties or layers)
-  ``Ctrl + G`` - Toggle displaying of the tile grid
-  ``H`` - Toggle highlighting of the current layer
-  ``Ctrl + M`` - Invokes :doc:`automapping`
-  ``Alt + C`` - Copy current position of mouse cursor to clipboard (in
   tile coordinates)
-  ``Ctrl + D`` - Duplicate selected objects
-  ``Ctrl + J`` - Create a new layer and copy the currently selected objects or tiles to it
-  ``Ctrl + Shift + J`` - Create a new layer and move currently selected objects or tiles to it
-  ``Ctrl + Shift + D`` - Duplicate selected layers
-  ``F2`` - Rename (if applicable in context)
-  ``Tab`` - Hide docks and tool bars
-  ``Ctrl + PgUp`` - Select previous layer (above current layer)
-  ``Ctrl + PgDown`` - Select next layer (below current layer)
-  ``Ctrl + Shift + Up`` - Move selected layers up
-  ``Ctrl + Shift + Down`` - Move selected layers down
-  ``Ctrl + H`` - Show/Hide selected layers
-  ``Ctrl + L`` - Lock/Unlock selected layers
-  ``Ctrl + Shift + H`` - Show/Hide all other layers (only active layer
   visible / all layers visible)
-  ``Ctrl + Shift + L`` - Lock/Unlock all other layers
-  ``Ctrl + Tab`` / ``Alt + Left`` - Switch to left document
-  ``Ctrl + Shift + Tab`` / ``Alt + Right`` - Switch to right document
-  ``]`` - Select next tileset
-  ``[`` - Select previous tileset
-  ``Ctrl + T`` - Force-reload all tilesets used by the current map
   (mainly useful when not using the automatic reloading)
-  ``Ctrl + Shift + A`` - Clear any object and tile selection

When a tile layer is selected
-----------------------------

-  ``Right Click on Tile`` - Captures the tile under the mouse (drag to
   capture larger areas).
-  ``Ctrl + Right Click on Tile`` - Selects the layer containing the top-most tile under the mouse.
-  ``D`` - Toggle Random Mode
-  ``B`` - Activate :ref:`stamp-tool`

   -  ``Shift + Click`` - Line mode, places tiles on a line between two
      clicked locations
   -  ``Ctrl + Shift + Click`` - Circle mode, places tiles around the
      clicked center

-  ``T`` - Activate :ref:`terrain-tool`
-  ``F`` - Activate :ref:`bucket-fill-tool`
-  ``P`` - Activate :ref:`shape-fill-tool`
-  ``E`` - Activate :ref:`eraser-tool`
-  ``R`` - Activate Rectangular Select
-  ``W`` - Activate Magic Wand
-  ``S`` - Activate Select Same Tile
-  ``Ctrl + 1-9`` - Store current tile stamp. When no tile drawing tool is
   selected, tries to capture the current tile selection (similar to
   ``Ctrl + C``).
-  ``1-9`` - Recall a previously stored tile stamp (similar to ``Ctrl + V``)
-  ``Ctrl + A`` - Select the whole layer

Changing the active stamp:

-  ``X`` - Flip active stamp horizontally
-  ``Y`` - Flip active stamp vertically
-  ``Z`` - Rotate active stamp clockwise
-  ``Shift + Z`` - Rotate active stamp counterclockwise


When an object layer is selected
--------------------------------

-  ``S`` - Activate :ref:`select-objects-tool`

   -  ``PgUp`` - Raise selected objects (with Manual object drawing
      order)
   -  ``PgDown`` - Lower selected objects (with Manual object drawing
      order)
   -  ``Home`` - Move selected objects to Top (with Manual object
      drawing order)
   -  ``End`` - Move selected objects to Bottom (with Manual object
      drawing order)

-  ``O`` - Activate :ref:`edit-polygons-tool`
-  ``R`` - Activate :ref:`insert-rectangle-tool`
-  ``I`` - Activate :ref:`insert-point-tool`
-  ``C`` - Activate :ref:`insert-ellipse-tool`
-  ``P`` - Activate :ref:`insert-polygon-tool`

   -  ``Enter`` - Finish creating object
   -  ``Escape`` - Cancel creating object

-  ``T`` - Activate :ref:`insert-tile-tool`
-  ``V`` - Activate :ref:`insert-template-tool` (since Tiled 1.1)
-  ``E`` - Activate :ref:`insert-text-tool`
-  ``Ctrl + A`` - Select all objects on the selected layers

In the Properties dialog
------------------------

-  ``Backspace`` - Deletes a property
