Pregunta

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?

¿Fue útil?

Solución

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

Otros consejos

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top