Thursday, April 5, 2012

TSQL keyboard Shortcuts - Multiple line comment or uncomment out

Keyboard Shortcuts


  • F5 or Ctrl + E or Alt + x - execute currently selected TSQL code
  • Ctrl + R – show/hide Results Pane
  • Ctrl + N – Open New Query Window
  • Ctrl + L – Display query execution plan
Editing Shortcuts
  • Ctrl + K,C and Ctrl + K,U - comment/uncomment selected block of code (suggested by Unsliced)
  • Ctrl + Shift + U and Ctrl + Shift + L - changes selected text to UPPER/lower case


I am mostly interested on comment/uncomment out multiple lines.

Comment out (Ctrl + K,C)
 
--cmsContent
--cmsPageContent
--cmsPageSource
--cmsPageTaxonomy
--cmsTemplateLocation
--CMSPage
--CMSTemplate

Uncomment out (Ctrl + K,U)

cmsContent
cmsPageContent
cmsPageSource
cmsPageTaxonomy
cmsTemplateLocation
CMSPage
CMSTemplate

No comments:

Post a Comment