Reputation: 743
I have not been able to find the equivalent shortcut key to Ctrl+L used in Visual Studio (to cut and copy a line) in SQL Server 2005/2008. I find Ctrl+L to be very handy.
Does anyone know a keyboard shortcut to cut and copy a line in SQL Server Management Studio?
Upvotes: 2
Views: 1254
Reputation: 453287
This is a partial solution.
In 2008 SSMS you can right click the toolbar. Choose customize then in the "Edit" section drag the "Line Cut" item up to the Edit menu.
.
Then pressing Alt + E followed by Alt + L works.
But I couldn't figure out how to then map that to the single Ctrl + L combination. This is by default mapped to "Show Estimated Execution Plan" and I didn't find a way to change that.
Upvotes: 1
Reputation: 1062800
Just hit ctrl+c with no text selected - this copies the current line; likewise ctrl+x with no text selected cuts the current line.
Upvotes: 4