Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8516235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:22:06+00:00 2026-06-11T05:22:06+00:00

As we all know by now, Microsoft (in their infinite wisdom…) have dropped macro

  • 0

As we all know by now, Microsoft (in their infinite “wisdom”…) have dropped macro support from Visual Studio 2012.

Unfortunately for me, I make extensive use of simple macros in Visual Studio 2010. These macros are very simple indeed; for example, doing things like inserting a GUID at the current caret location.

I would like to have the same functionality of all of these simple macros in VS2012, but for now I’d settle for one of my most-used ones: My “InsertTodo()” macro. All this does is to insert my initials and the current date at the current caret location, like so:

// TODO(MRW:2012-09-11): 

It leaves the caret at the end of the inserted text, ready for me to type my TODO comment.
I have assigned this to the Alt+T key, for easy use.

The macro code in VS2010 is extremely basic (no pun intended ;):

Sub InsertTodo()
    DTE.ActiveDocument.Selection.Text = String.Format("// TODO(MRW:{0}): ", DateTime.Now.ToString("yyyy-MM-dd"))
End Sub

My question is simple: How do I replicate this in Visual Studio 2012?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:22:08+00:00Added an answer on June 11, 2026 at 5:22 am

    You can write a VS addin as described here:
    http://www.codewrecks.com/blog/index.php/2012/08/24/converting-visual-studio-macro-to-visual-studio-plugin/

    Or you can use a Powershell/NuGet hybrid as described here:
    http://www.wintellect.com/CS/blogs/jrobbins/archive/2012/03/30/using-nuget-powershell-to-replace-missing-macros-in-dev-11.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As we all know, in Visual Studio there are two predefined configurations - Debug
I'm now detecting all the skeleton in a wpf application, I want to know
Right now all of my times on my reports are in GMT. Anybody know
All right, do not get angry now, I know there are several questions about
We all know the effects that lots of thrown exceptions can have over the
I know that the Microsoft SOAP toolkit has been deprecated for a while now
Ok I have a reportviewer that has worked perfectly up untill now, now all
All - I have recently upgraded our production environment from Sql Server Reporting Services
I'm a Unix CM geek, and know little about Microsoft .NET development. We now
I have been hearing about F# and Microsoft now have a guy who is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.