IntelliJ Community . LineUpAndDownMoverPlugin

 
LineUpAndDownMoverPlugin 

HOME INDEX SEARCH CHANGES GO  
Attention: shortcuts collision with Quick Implementation (since build 3075).
Suggestion: remap Quick-Implementation ( on MacOS? X, ^I is free).

This plugin adds 4 actions to the editor

  • Move the current line/selected lines UP
  • Move the current line/selected lines DOWN
  • Move the selected text to the file top
  • Move the selected text to the file bottom


Example :

BeforeAfter 1 Up

one
two
th|ree

one
th|ree
two
beforeUp.PNG afterUp.PNG


How to use :

  • [Ctrl-Shift][I] --> "Move Line 1 Up"
  • [Ctrl-Shift][K] --> "Move Line 1 Down"
  • [Alt-Ctrl-Shift][I] --> "Move the selected text to the file top"
  • [Alt-Ctrl-Shift][K] --> "Move the selected text to the file bottom"

( Default Mapping: in "Editor Actions" )


Version :
v1.1
  • 2 new actions: move the selected text to the file top/bottom
  • added: auto-indent the moved text

v0.4f

  • fixed for build 3177
  • code refactoring

v0.4.0

  • added: ensure 2 lines are always shown at the top/bottom of the editor when moving up/down.
  • fixed: don't move the last selected line when selection ends at column 0 of the line.
  • fixed: smooth scrolling when moving both up and down.
  • fixed: relative caret position after the move is the same as before the move.

-- CarlosCS - 03 Nov 2002

v0.3

  • added : default keymaps (Ctrl-Shift-I/K)
  • fixed : caret move out of screen when moving up/down past the screen bottom.

v0.2

  • added : move a block of lines.

v0.1 : initial version

  • feature : move 1 line up or down 1 row.

To Do

  • jump over folded blocks.

Bugs


-- AlainRavet - 24 Oct 2002

IntelliJPluginWebForm
IntelliJPluginName: LineUpAndDownMoverPlugin
IntelliJPluginVersion: 1.1b
IntelliJPluginVendor: AlainRavet
IntelliJPluginBinary:
IntelliJPluginSource:
IntelliJPluginClassification: CodeHelper?
TopicClassification: IntelliJPluginArchive
TopicShortDescription: adds 2 actions to the editor : Move the current line/selected lines UP/DOWN
TestedOnOS: OsWinXP
ShouldRunOnOS: AnyOS

Attachment: sort Action: Size: Date: Who: Comment:
LineMoverPlugin-1_1b-serc.zip action 28757 11 Feb 2005 - 20:55 AlainRavet src v1.1b

e d i t a t t a c h r e f - b y d i f f s m o r e
Have ideas, requests, problems regarding this site? Send feedback.
Copyright © 2000-2003 by the contributing authors. All materials at intellij.org are the property of the contributing authors.