Friday, December 5, 2014

SQL files using Resharper

This post is going to show how to create a file template in Resharper that allows you to quickly create new SQL files (files ending with *.sql) in Visual Studio.

By default the quick access list contains the following items.

  • Class
  • Interface
  • Struct
  • Enum

Goto Resharper -> Template Explorer

Choose New Template

Save the template and it will appear in the template explorer.

Drag the SQL template into the quicklist and you are good to go.

The quick access list will now contain the following items.

  • Class
  • Interface
  • Struct
  • Enum
  • SQL

Enjoy!!