Unity/MonoDevelop Add-In: Duplicate selected lines with a keystroke.
This is one of those things that you don’t know you need until you have it, and the one feature I’ve missed the most since my Eclipse/FlashBuilder days:
I wrote a little MonoDevelop Add-In that lets you duplicate the line you’re on (or multiple selected lines) by pressing Alt+Ctrl+Up to duplicate above or Alt+Ctrl+Down to duplicate below your current position. In combination with Alt+Up and Alt+Down (which move selected lines around), this comes in super handy for dealing with repetitive blocks of code (such as variable declarations).
You can download the plug-in here: http://www.philippseifried.com/files/MonoDevDuplicateSelection.zip
To install, close MonoDevelop and copy the DLL into the folder /Applications/Unity/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns on Mac, or [Unity install path]/Unity/MonoDevelop/AddIns on Windows. After starting MonoDevelop again, you can use the keyboard shortcuts, or access the functionality from the Edit menu.
Note that you will need to re-install the Add-In if you update Unity!
The Add-In is under MIT license, so feel free to use and redistribute it as you see fit. I’ve tested it on Windows and Mac (where I’ve been using it daily for a few weeks), but of course standard disclaimers apply: Use at your own risk!
2 Responses to Unity/MonoDevelop Add-In: Duplicate selected lines with a keystroke.
Leave a Reply Cancel reply
About
I'm a Vienna-based media designer and developer. I co-founded bobblebrook, a small & cozy casual game studio.
I like to write about interactive media, games and code and how they mingle.
You can e-mail me at:
mail at philippseifried dot comon Twitter:
- …and protein shake. #, 19 hours ago
- Things our tomcat doesn't eat: ground beef, salmon, cooked turkey. Things he does eat: dry cat food, flowers. #, 20 hours ago
- Reddit post of pages from the official 60s Star Trek writer's guide. Full PDF linked in comments. Pretty fascinating! http://t.co/ZCLEfnFvWl #, 2013/05/18
Archives
- December 2012 (1)
- November 2012 (1)
- October 2012 (1)
- September 2012 (2)
- August 2012 (3)
- July 2012 (1)
- May 2012 (3)
- March 2012 (1)
- February 2012 (1)
- December 2011 (1)
- November 2011 (1)
- October 2011 (3)
- September 2011 (2)
- August 2011 (2)
- July 2011 (3)
Categories
- Apps (1)
- Articles (25)
- AS3 (9)
- Audio (8)
- Business (5)
- Game Design (1)
- General Programming (1)
- Graphic Effects (3)
- iOS (6)
- Processing (1)
- Tutorials (10)
- Unity (6)
- Toys (1)
- Uncategorized (1)








Hi! Can put the source code?
Hey!
It was quickly hacked together, so it’s not super-clean, but you can check out the source here, if you want to: http://www.philippseifried.com/files/MonoDevDuplicateSelection_Source.zip