Line mover with indentation

Hello guys,

I finally found the time to do what I wanted to do since I discovered LineMover plugin. With a help of a very small extra code it now moves lines AND then indents them in the same way as CtrlAltI does (Auto-Indent Lines). I do not invoke Auto-Indent Lines action because it move caret to a rather wrong for this plugin place. I used some code from IDEA to do the trick, so my contribution here is very limited.

I am not sure that I need to iterate to the next version the existing plugin. I suspect some people would want to use the old one instead. So I created a new plugin entry in the repository. It's called LineMoverIndent. Two these plugins can be used at the same time, just make sure you assign different keystrokes for them. I'll post the source code later on.

Here is the link to the repository http://plugins.intellij.net/plugins/view/?id=LineMoverIndent
Enjoy!

--
Dmitry Skavish
JetBrains, Inc. / "Develop with pleasure!"
http://www.jetbrains.com
-- Posted by JetBrains OmniaMea

32 comments
Comment actions Permalink

I tried assigning the keyboard shortcut to a desktop icon and it didn't do
anything. Still said 'none'. So, I'm assuming some application has hijacked
it but I have no idea which one or how to find out.

"Andrei Oprea" <andrei.oprea@rogers.com> wrote in message
news:c83b2l$l08$1@is.intellij.net...

Try assigning the shortcut to any desktop icon. Windows won't let you if

it's already in use. It won't tell you who's using it, though, but that
wouldn't be the first "surprise" you got from Windows, would it? :)
>

HTH,
Andrei

>

B> Do you know if there is a way to verify that? Just hitting
B> CtrlShiftI doesn't seem to do anything.
B>
B> "Jacques Morel" <jacmorel@yahoo.com> wrote in message
B> news:17333794.1084563251497.JavaMail.itn@is.intellij.net...
B>
>> If you are on windows, you might want to verify that you don't have a
>>
B> desktop or quickstart icons with shortcut. They will take precedence
B> over any application's.
B>
>> Jacques
>>

>


0
Comment actions Permalink

The LineMoverIndent plugin isn't in the repository anymore.

Any reason for this? Is it going to be standard in idea? Anyone can
send me a copy or a link?

Thanks

BTW, Dmitry, will the source be available? It could be useful for
someone looking at how indentation should be done in a plugin.

0

Please sign in to leave a comment.