CR_JoinLines - Join Lines in Visual Studio Code Editor via DXCore
UPDATE: CR_JoinLines has found a new home with theDXCore Community Plugins project. Head over there to get the latest and read more!
I use TextPad for text editing and one of the things I like a lot about TextPad is the Ctrl+J shortcut that allows you to join selected lines to each other. Visual Studio doesn’t offer that line joining capability, so I decided to write it.
CR_JoinLines adds a command (“Join Lines”) that you can bind to a keyboard shortcut (Ctrl+J, Enter is what I use) and will join lines in the code editor. It also allows for an optional delimiter, so if you want a pipe or comma or some other string (yes, string - you’re not limited to a single character) inserted between the joined lines, you can do that.
Installation is as easy as copying a DLL into a folder and adding the keyboard shortcuts you want.
The included readme.txt outlines installation, usage, and workarounds for known issues.
Requires DXCore 1.1.58 or later (DXCore is a FREE download from Developer Express - go get it!). UPDATE: CR_JoinLines has found a new home with theDXCore Community Plugins project. Head over there to get the latest and read more!
Version History: 1.0.0.0830: First release. 220.127.116.112: Added ability to provide Delimiter parameter to join lines with a delimiter between each joined line. 1.1.1.0307: Fixed issue where, in later versions of DXCore, joining on selection functioned incorrectly.