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?

有帮助吗?

解决方案

Just hit ctrl+c with no text selected - this copies the current line; likewise ctrl+x with no text selected cuts the current line.

其他提示

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.

enter image description here.

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top