does Visual Studio 2010 not have a "join lines" keyboard shortcut?
EDIT - That is when on line X anywhere, I hit a shortcut key once, and then line X+1 joins to line X (eliminating CR between them so to speak)
does Visual Studio 2010 not have a "join lines" keyboard shortcut?
EDIT - That is when on line X anywhere, I hit a shortcut key once, and then line X+1 joins to line X (eliminating CR between them so to speak)
What do you mean? Deleting at lines' beginning/end will join two lines. What are you thinking of doing?
As I far as I know it does not.
However, you can create and save a new VS macro using the following code:
Sub JoinLines()
DTE.ActiveDocument.Selection.EndOfLine()
DTE.ExecuteCommand("Edit.Delete")
DTE.ActiveDocument.Selection.EndOfLine()
End Sub
and assign a keyboard shortcut to it (like CTRL + j)
This code will join the current line with the one right below it.
If you want the join feature to act like Vim (pressing Shift-J) then use this macro that joins, inserts space and places cursor after the space:
Sub JoinLines()
Dim textSelection As TextSelection = DTE.ActiveDocument.Selection
With textSelection
.EndOfLine()
.Insert(" ")
.Delete(1)
End With
End Sub
Just assign it to something like ALT-J (as CTRL-J and CTRL-SHIFT-J are taken)