IntelliJ IDEA 14.0.0 Web Help

Using Drag-and-Drop in the Editor

IntelliJ IDEA allows copying and moving code fragments within the active editor tab, by means of drag-and-drop.

To move or copy code fragment

  1. Make sure that using drag-and-drop is enabled in the Editor page of the IDE Settings.
  2. Select the desired fragment in the editor.
  3. Move or copy selection:
    • Move: Drag the selected fragment to the target location.
    • Copy: Keeping the Ctrl key pressed, drag selection to the target location.

See Also

Procedures:

Web Resources:

Last modified: 12 November 2014
comments powered by Disqus