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
请先登录再写评论。
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...
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? :)
>
>
>
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.