Visual Studio Tip: Lazy Code Snippets

Play Visual Studio Tip: Lazy Code Snippets
Sign in to queue

Description

You have probably discovered code snippets and you may even know you can create your own code snippets. But, I have a confession to make, I am lazy. I usually can't be bothered to define the xml to create my own snippets. That's why I love using the Toolbox! You can just drag code from the code editor into the Toolbox. Then the next time you need it, just drag it back to the code editor!

Embed

Download

The Discussion

  • User profile image
    Djeez

    Briljant! I didn't know even after programming with VS for 14 years!

  • User profile image
    Doctor Who

    I've never seen this little feature of Visual Studio before. This was fantastic! What a great tip!! Thank you!!!

  • User profile image
    JohnMarsing

    Nice tip.  I tried this also in SSMS, but it doesn't work, have you tried it?

  • User profile image
    OzBobWa

    Thx for the tip Susan @HockeyGeekGirl

     

    @JohnMarsing - SqlServerMangementStudio is based on .Net3 and VS2005 - so i don't reckon you will get much - why don't you try the Database Project from Visual Studio 2013 enhanced even more by the essential 'SQL Data Tools' (https://msdn.microsoft.com/en-us/data/hh297027)

  • User profile image
    HockeyGeek​Girl

    Glad you found it helpful! Yeah I haven't seen that feature in SQL Server Management Studio either John.

  • User profile image
    Paul CLEMENT

    Great tip ... very helpful ! ty

  • User profile image
    Oleg

    Thanks for the information!
    Also, I want to add one more possible solution - I use <a href="https://www.devart.com/dbforge/sql/sqlcomplete/code-completion.html">SQL Complete</a> to speed up SQL code writing, offer context-based smart suggestions, perform automatic formatting and refactoring, improve code readability, increase productivity

  • User profile image
    Oleg

    Thanks for the information!
    Also, I want to add one more possible solution - I use https://www.devart.com/dbforge/sql/sqlcomplete/code-completion.html to speed up SQL code writing, offer context-based smart suggestions, perform automatic formatting and refactoring, improve code readability, increase productivity

Add Your 2 Cents