문제

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