One of the best Features that SSMS has . Unfortunately one of the few good Things in contrast to so many Features missing in SSMS

Visual Studio also has this Feature when dragging Objects from SQL Server Object Explorer into a Query Window.

Bernhard