Creativity, Innovation... Failure



Visual Studio 2005: Annoyance #1

We are all doing it!  We code then press 'F5' to test. But then on, especially when you are programming with C# you certainly use from time to time the 'Edit and Continue' feature. Right? I am but sometimes it gets annoying: upon pressing the pause button, you're always prompted to the main() function.

When using it extensively it turns out to be a pain in the ass ... Yell   So I decided to share how I resolved this issue.   First I took a look into the Tools>Options menu but found nada so I asked myself what can be done?   A MACRO!   So I simply had to find out how to break (1st line) and then how to prompt to the last document (2nd line).

Public Module RecordingModuleSub PAUSE_AND_CURRENT()
     DTE.Debugger.Break(True)
    
DTE.ExecuteCommand ("Window.NextDocumentWindowNav")
End Sub

So now we need this macro to be called when we pause.

  • Open up the "Macro explorer" from the Tools>Macro menu.

  • Create a macro and copy-paste the code above.

  • Save.

  • Go in the toolbar customization and a button with this macro.

  • Draw a nice icon for your button.

  • Enjoy!

If you know a better way let me know.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments

November 9. 2009 14:10

online personal loans

Thank you for your help!

online personal loans

November 14. 2009 18:03

payday loans

I like your blog but how do I subscribe?

payday loans

December 4. 2009 15:51

payday loans

Hmmm interesting stuff

payday loans

December 5. 2009 16:28

cash loans

I always wanted to write in my site something like that but I guess you'r faster Smile

cash loans

December 29. 2009 19:52

Sebastian

This is a really good read for me, Must admit that you are one of the best bloggers I ever saw.Thanks for posting this informative article.

Sebastian

January 4. 2010 19:46

Abigail

I have been looking for content like this for a research project I am working. Thanks very much.

Abigail

January 4. 2010 19:46

Willow

hi buddy, I found your site from wikipedia and read a few of your other blog posts.They are cool. Pls continue this great work.

Willow

January 6. 2010 00:33

faxless loans

Just wanted to say thanks for this.

faxless loans

January 10. 2010 18:10

payday loans

Yea nice Work !Laughing

payday loans

February 12. 2010 11:54

fast payday loans

The only way to find the limits of the possible is by going beyond them to the impossible.

fast payday loans

March 2. 2010 08:38

ucvhost

I admire the valuable information you offer in your articles. I will bookmark your blog and have my children check up here often. I am quite sure they will learn lots of new stuff here than anybody else!

ucvhost

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

March 10. 2010 10:38