azuredatastudio icon indicating copy to clipboard operation
azuredatastudio copied to clipboard

Feature Request: New Query Template

Open VIDGuide opened this issue 7 years ago • 2 comments

  • SQL Operations Studio Version: In SSMS, there is the ability to set a New Query Template, so than any time a New Query Window is opened, it's pre-filled based on the supplied template.

I'd like to see similar behaviour implemented in Operations Studio, so that new query windows can open pre-fille based on a template.

VIDGuide avatar Jan 16 '18 23:01 VIDGuide

Wouldn't it be better to just use snippets?

chris904apps avatar Jan 17 '18 03:01 chris904apps

@chris904apps Snippets would be one way to deal with it, but the template prevent forgetting. I like to use something as basic as:

BEGIN TRAN


ROLLBACK TRAN

as a new query template, so that I don't accidentally execute anything dangerous unintentionally. There are a few other uses for it too, just saves having to remember to insert it when relevant/needed.

VIDGuide avatar Jan 17 '18 23:01 VIDGuide