Chinh Do

11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer

20th September 2007

11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer

Here are my top 11 tips and tricks for getting things done faster with the Visual Studio 2005 IDE (without using third-party add-ins or upgrading hardware… that’s another article). Yes, some of these tips and tricks may fall into the "obvious" category, but I think they are worth repeating. I continue to see too many .NET developers not taking advantage of even the basic time-saving techniques.

I work mostly with C# so some of these tips may not apply to, or work differently with other Visual Studio languages such as Visual Basic.NET.

(1) Express Yourself with Regular Expressions

Regular Expressions is a powerful and portable text search/replace/transformation language. Learning basic Regular Expressions will immediately make you a more productive developer/power user. Regular Expressions is supported in Visual Studio’s various Search/Replace dialogs. Any Regular Expressions skill you learn will also be useful in numerous other applications and settings: other text editors, unix shell/egrep, PowerShell, input validation, and Google search (heh, just kidding on that last item).

You can also use Regular Expressions with macros and automation via the Regex class.

Here’s an example of how you can save time with Regular Expressions in Visual Studio. Say, you just wrote and tested a SQL in a Query Tool and you want to turn it into a  string variable in your C# class? Here’s how:

First, paste the SQL text into the editor. Make sure to remove any unwanted indentation on the left side of the text (SHIFT-Tab):

Regular Expressions Example - 1 

Then hit CTRL+H to bring up the Find and Replace Dialog and fill it out like this:

Regular Expressions Example - 2 

Note: For VB.NET, in the “Find and Replace Dialog Window”, change the value in
“Replace With” box: from {[ + “\1″ ]}… to {[ & “\1″ _ ]}. Thanks to berkx for this info.

Choose Replace All. Fix a couple of lines, sit back and admire your beautiful work:

Regular Expressions Example - 3 

Explanation? Basically, the "Find what" expression above matches the content of each line and give it a numbered "tag". The "Replace with" expression then replaces each line with the first tagged value (\1), wrapped around in + " ". Click the fly-out (triangle) button next to each box to display a cheat-sheet of frequently used expressions. Oh, and don’t worry about the "+" string concatenations in the example, the compiler knows to optimize that syntax.

Once you’ve created a few Search/Replace expressions like the above, create macros out of them and assign to shortcuts.

Here are some of the Regex transformations I use most often when writing code:

  • Surrounds each line with (example above).
  • Transform a list of values separated by newlines into a coma-delimited list (used in array initializers or SQL where clause).
  • Put double quotes around each value in a coma-separated list.

Tools to help you write/test Regular Expressions:

(2) Take (Keyboard) Shortcuts

Using keyboard shortcuts is the best way to get things done faster in Visual Studio (and most other computer applications for that matter).

Below are my favorite Visual Studio keyboard shortcuts (I am leaving out the really obvious ones like F5).

  • CTRL+ALT+L: View Solution Explorer. I use Auto Hide for all of my tool windows to maximize screen real estate. Whenever I need to open the Solution Explorer, it’s just a shortcut away. Related shortcuts: CTRL+ALT+X (Toolbox), F4 (Properties), CTRL+ALT+O (Output), CTRL+\, E (Error List), CTRL+\, T (Task List).
  • F12: Go to definition of a variable, object, or function.
  • SHIFT+F12: Find all references of a function or variable.
  • F7: Toggle between Designer and Source views.
  • CTRL+PgDn: Toggle between Design and Source View in HTML editor.
  • F10: Debug – step over. Related debugging shortcuts: F11 (debug – step into), SHIFT-F11 (debug – step out), CTRL-F10 (debug – run to cursor). F9 (toggle breakpoint).
  • CTRL+D or CTRL+/: Find combo (see section on Find Combo below).
  • CTRL+M, O: Collapse to Definitions. This is usually the first thing I do when opening up a new class.
  • CTRL+K, CTRL+C: Comment block. CTRL+K, CTRL-U (uncomment selected block).
  • CTRL+-: Go back to the previous location in the navigation history.
  • ALT+B, B: Build Solution. Related shortcuts: ALT+B, U (build selected Project), ALT+B, R (rebuild Solution).
  • CTRL+ALT+Down Arrow: Show dropdown of currently open files. Type the first few letters of the file you want to select.
  • CTRL+K, CTRL+D: Format code.
  • CTRL+L: Delete entire line.
  • CTRL+G: Go to line number. This is useful when you are looking at an exception stack trace and want to go to the offending line number.
  • SHIFT+ALT+Enter: Toggle full screen mode. This is especially useful if you have a small monitor. Since I upgraded to dual 17" monitors, I no longer needed to use full screen mode.
  • CTRL+K, X: Insert "surrounds with" code snippet. See Snippets tip below.
  • CTRL+B, T: Toggle bookmark. Related: CTRL+B, N (next bookmark), CTRL+B, P (prev bookmark).

The complete list of default shortcuts is available from VS 2005 Documentation. You can also download/print reference posters from Microsoft: C# Keyboard Reference Poster, VB.NET Keyboard Reference Poster.

(3) Make New Shortcuts

There is something you do a lot in Visual Studio and there is no shortcut for it? Create one. Here’s how:

  • Choose Tools/Options and select Environment/Keyboard.
  • Type in something into "Show commands containing" to get a list of matching commands. If there is already a shortcut for the selected command, it’ll be displayed in "Shortcuts for selected command".
  • To assign a new shortcut to the selected command, put the cursor in "Press shortcut keys" and press the shortcut key or key combinations desired.

Visual Studio Options - Keyboard 

Have a custom Macro that you run often? Assign it to a keyboard shortcut. Here are some of my custom keyboard shortcuts:

  • CTRL+Num, T: Show the Test View.
  • CTRL+Num, D: Start debugging the selected Unit Test in Test View.
  • CTRL+’, L: "Collapse all in Solution Explorer " macro (see Macros section below).
  • CTRL+’, S: "Surrounds each line with" Macro.
  • CTRL+’, C: Compare with previous Source Control version.

(4) Use Code Snippets

Save time typing repetitive code by using Code Snippets. There are two types of Snippets in Visual Studio 2005: Expansion and SurroundsWith. To use Expansion Snippets, type the Snippet shortcut (not to be confused with keyboard shortcuts), and press Tab twice.

For example, the "for" Snippet is an Expansion Snippet. To use it, type "for"…

'for' Expansion Snippet Step 1 

Then press Tab, Tab:

'for' Expansion Snippet Step 2 

I find SurroundsWith Snippets more useful though. An example SurroundsWith Snippet is "#region". First, select a block of code:

SurroundsWith Snippet Step 1 

Then, type CTRL+K, CTRL+S and "#re":

SurroundsWith Snippet Step 2 

Then hit Enter:

SurroundsWith Snippet Step 3 

Here are my favorite Snippets:

  • #region: Regions is a great way to organize your code.
  • using: If you create an IDisposable object, you should use the "using" pattern. In addition to the basic "using" Snippet, I also created several variations for TransactionScope, and IDataReader.
  • try/catch
  • {}
  • /// <summary>$end$</summary>

More info:

(5) State Your Preferences

Find yourself constantly switching to the Design view every time you create/open an ASPX page? Cannot locate your current file in the Solution Explorer? Easy… just change the right settings and never think about it again.

Here are the some settings in Visual Studio that can save you time:

  • Open HTML pages in Source View: Tools/Options/HTML Designer/Start pages in.
  • Track the current file in Solution Explorer: Tools/Options/Projects and Solutions/Track Active Item in Solution Explorer.
  • Change the Start page or get rid of it: Tools/Options/Environment/Startup.
  • Change the default font-size to a smaller size so you can see more code. My editor font setting is ProFontWindows at size 9.
  • Turn of animations: Uncheck Tools/Options/Environment/Animate environment tools.

(6) "Attach to Process" to Start Debugging ASP.NET

Most ASP.NET developers use the standard F5 (Debug/Start Debugging) to start debugging from Visual Studio. However, there is a much faster way to start debugging if you already have an instance of your web application running. Just attach to it instead:

  • Choose Debug/Attach to Process.
  • Select the "aspnet_wp.exe" process and choose Attach.

Or, for keyboarders:

  • ALT+D, P, "as", Enter.

Debugging this way is faster because you skip the often-lengthy compilation step, and you don’t have to navigate from the start page to the actual page that you want to debug.

(7) Stop Conditionally (Conditional Breakpoints)

How often have you found yourself repeatedly stepping through a loop while debugging, waiting to get to a specific loop value (because the bug only occurs with that specific value)? With Conditional Breakpoints, you don’t have to do that. Just set a Breakpoint Condition.

Set the Breakpoint. Right click on the Breakpoint indicator (red circle), and choose Condition:

Breakpoint Condition Step 1 

Set the condition (any valid C# expression):

Breakpoint Condition Step 2 

Another debugging productivity trick I use is to override ToString() to return a useful summary of your objects. The Debugger uses the value returned by ToString in various Debug windows such as Watch Window. You can also use the DebuggerDisplay attribute.

(8) Employ Task List Tokens

Use Task List tokens such as TODO and HACK to quickly mark incomplete code or code that requires further attention. This allows you to keep flowing and skip over the details, but at the same time ensures that you will not forget to go back and finish up.

A shortcoming with Visual Studio 2005’s Task List is that it only shows the items in the current file. You can get around this by using the Find in Files feature and search for "// TODO".

(9) Go Directly to Any File with the Find Combo Box

This is the Find dropdown that is on the Standard Toolbar, not the Find dialog. Use the shortcut CTRL+D to activate the Find dropdown in normal mode. Use CTRL+/ to activate the Find dropdown in command mode (with ">" prepended… this doesn’t work sometimes for me).

Find Combo 

To quickly go to a file, type CTRL+D, >open  <start of file name>. Intellisense works here just like in the Command Window. "of" (short for "open file") can be used instead of open. Compare this with opening Solution Explorer, expand the correct folder/project, and visually hunt for the file you need.

With the Find Combo, you can also execute commands, macros, find text, etc. More info:

(10) Type Ahead (Incremental Search) in Lists

Type-ahead search works in many Visual Studio lists such as Solution Explorer, Active Files Combo (CTRL+ALT+Down Arrow), Add References, Class View, Attach to Process, Test View, etc.

To see how it works, it’s best to try it yourself. Open the Solution Explorer and start typing the first few letters of a visible file.

(11) Automate with Macros and Visual Studio Automation

I save this for last because I think macros and Automation have the potential to give you the biggest productivity booster, but also require the most initial time investment.

For many developers, the most effective way to take advantage of macros is to find and use or customize someone else’s macros.

If you want to get started with writing your own macros, the first feature you should get familiarize yourself with is the Macro Recording feature (shortcut CTRL+SHIFT+R).

For more info:

Here are some useful macros for you to start with:

Additional reading

This entry was posted on Thursday, September 20th, 2007 at 5:57 pm and is filed under Dotnet/.NET - C#, Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

There are currently 93 responses to “11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer”

  1. 1 On September 24th, 2007, Carlo said:

    I can recognize ProFontWindows from 5 feet away. :) Helpful tips.

  2. 2 On September 24th, 2007, September 23rd Links: VS, ASP.NET, ASP.NET AJAX, Silverlight, WPF - ScottGu's Blog said:

    […] 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer: Chinh Do has put together an excellent post that covers a bunch of VS 2005 Tips and Tricks that you can use immediately to optimize your developer workflow.  I actually learned a few new ones reading it! Highly recommended. […]

  3. 3 On September 24th, 2007, ASP.NET : September 23rd Links: VS, ASP.NET, ASP.NET AJAX, Silverlight, WPF said:

    […] 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer: Chinh Do has put together an excellent post that covers a bunch of VS 2005 Tips and Tricks that you can use immediately to optimize your developer workflow.  I actually learned a few new ones reading it! Highly recommended. […]

  4. 4 On September 24th, 2007, BusinessRx Reading List : September 23rd Links: VS, ASP.NET, ASP.NET AJAX, Silverlight, WPF said:

    […] 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer: Chinh Do has put together an excellent post that covers a bunch of VS 2005 Tips and Tricks that you can use immediately to optimize your developer workflow.  I actually learned a few new ones reading it! Highly recommended. […]

  5. 5 On September 24th, 2007, Catto said:

    Hey Now Chinh,
    Just saw a link from Scott Gu’s blog & I really like the shortcut tips. Thanks for the info.
    Catto

  6. 6 On September 24th, 2007, MarcusL said:

    Another shortcut for Attach to Process is CTRL+ALT+P, also for users using Cassini the process will be “WebDev.WebServer.exe” so instead of typing “as” you’d type “we” to select the running server.

  7. 7 On September 24th, 2007, WebGyver said:

    Hello Chinh,

    Thank you so much for posting the Tips & Tricks. Your explanations and examples are awesome for a Visual Studio developer like me who has too many other things going to become an expert at a single thing.

    I’m looking at the links and all the macro information, too, which I greatly appreciate.

    Please, keep up the good work. Wishing you Peace, Love, Good Health & Happiness in your life!

    WebGyver
    http://www.webgyver.info
    ====================================
    Working on the web since 1996.
    Making web stuff out of bubble gum,
    ball point pens and ordinary
    household cleaners.

  8. 8 On September 24th, 2007, 17 Links Today (2007-09-24) said:

    […] 11 Visual Studio 2005 IDE Tips and Tricks […]

  9. 9 On September 24th, 2007, jc said:

    I usually write SQL statements like this:
    string s = @”
    select *
    from …
    where …
    “;

  10. 10 On September 24th, 2007, Nathan said:

    Thanks for the great tips!

    I prefer ctrl-k, ctrl-k for toggle bookmark btw. It is faster.

  11. 11 On September 24th, 2007, Matthew said:

    Great tips thanks.

  12. 12 On September 24th, 2007, Links 23 de Septiembre: VS, ASP.NET, ASP.NET AJAX, Silverlight, WPF « Thinking in .NET said:

    […] 11 trucos para VS 2005 para hacernos un desarrollador más productivo: Chinh Do ha puesto en un sólo post varios trucos sobre VS 2005 que podemos usar para optimizar nuestro trabajo como desarrolladores. Personalmente he aprendido muchas de ellas. Altamente recomendable. […]

  13. 13 On September 24th, 2007, Chinh Do said:

    Thanks all, for your comments. Glad this was helpful for some of you.

    Marcus: Thanks for the tip re CTRL+ALT+P for Attach to Process. Didn’t know about that one.

    JC: The @ string literal is great for muti-line scripts and SQLs too. Lately I am leaning more towards the “+” syntax because I find it easier to maintain/format. Just a personal preference.

    Nathan: CTRL+K, CTRL+K works too, and it’s probably easier to remember than CTRL+B, T.

  14. 14 On September 24th, 2007, NeverFriday » A few Emacs, Code::Blocks and MonoDevelop IDE Tips & Tricks said:

    […] sure there are developers that are jealous of the Visual Studio IDE and the tips and tricks that Chinh Do posted. Here are some of the equivalents for Emacs, Code::Blocks and […]

  15. 15 On September 24th, 2007, Philip the Duck said:

    Another very useful keyboard shortcut is Ctrl+Shift+8 (keyboard 8, not numpad 8) – this back-tracks the last F12 (go to definition, or declaration in C++).

    It’s different from Ctrl+- in that if you’ve moved the cursor around a bit or even made edits since last using F12, it returns right back to where you were when you hit F12.

  16. 16 On September 24th, 2007, בלוגה של אמא » links for 2007-09-25 said:

    […] 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer » Chinh Do (tags: tips vs2005) […]

  17. 17 On September 25th, 2007, Nicholas Swiatecki said:

    Hi,

    Saw this page on ScootGu’s Blog :) very nice tips :D

    But the combo Ctrl+Alt+Down Arrow is also used by (i belive) Intels GMA(grafics) which results in the screen image to flip up-side-down

  18. 18 On September 25th, 2007, Test Cycler said:

    11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer [del.icio.us]…

    VisualStudio tips programming vs2005 development productivity……

  19. 19 On September 25th, 2007, Chinh Do said:

    Philip: Didn’t know about CTRL+SHIFT+8. I will have to check that out. Thanks.

    Nicholas: Thanks! Yup, I got a ton of traffic yesterday from Scott Guthrie’s post (thanks, Scott :-)).

    If you want to assign a different keyboard shortcut to show the Active Files dropdown, the command name for it is “Window.ShowExMDIFileList”.

  20. 20 On September 26th, 2007, DotNET Heaven : 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer said:

    […] 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer hello guysChinh Do has made a great post about what are the most 11 tips/tricks you may use to increase your overall productivity with VisualStudio 2005.am not gonna write too many text as he can explain the story better.you may want to visit the page now, so click hereEnjoy! […]

  21. 21 On September 26th, 2007, Rich Wilson said:

    Keyboard shortucuts:

    You have the C# poster listed twice. The VB poster is actually at http://www.microsoft.com/downloads/details.aspx?FamilyID=6bb41456-9378-4746-b502-b4c5f7182203&DisplayLang=en

  22. 22 On September 26th, 2007, Kamran Shahid said:

    Nice information

  23. 23 On September 26th, 2007, log.itto.be » Blog Archive » links for 2007-09-26 said:

    […] 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer » Chinh Do Here are my top 11 tips and tricks for getting things done faster with the Visual Studio 2005 IDE (without using third-party add-ins or upgrading hardware… that’s another article). Yes, some of these tips and tricks may fall into the “obvious” cat (tags: .net asp.net vs2005 development productivity visualstudio tips) […]

  24. 24 On September 26th, 2007, Chinh Do said:

    Rich: Thanks for the tip. I have fixed the incorrect link.

  25. 25 On September 27th, 2007, Eugen Anghel said:

    Also worth mentioning is DPack: http://www.usysware.com/dpack/

    It’s a great free plugin with tons of features.

  26. 26 On September 27th, 2007, Fatih Hayrioğlu’nun not defteri » 27 Eylül 2007 Web’den Seçme Haberler said:

    […] Çok güzel Vs.Net ipuçları. Bağlantı […]

  27. 27 On September 27th, 2007, Visual Studio Productivity « Providing Thoughts On Development said:

    […] http://www.chinhdo.com/chinh/blog/20070920/top-11-visual-studio-2005-ide-tips-and-tricks-to-make-you… […]

  28. 28 On September 27th, 2007, Technical Tidbits » Blog Archive » useful VS2k5 tips said:

    […] do has some great tips on fully utilizing productivity features in visual studio 2005. i need to use snippets more than i do, although if i got to write more code than i do, i might be […]

  29. 29 On September 27th, 2007, Justin said:

    Nice tips. I decided to go through and figure out the emacs equivalent of these, where possible. The results are here:

    http://justinsboringpage.blogspot.com/2007/09/11-visual-studio-tricks-in-emacs.html

  30. 30 On September 28th, 2007, 10 Hot ASP.NET Tips and Tricks - 10/28/2007 said:

    […] 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer – Given that the majority of ASP.NET developers use Visual Studio, I feel that this is a pretty good and relevant article for my Tips and Tricks column. I think my favorite trick that Chinh mentions is employing task list icons. […]

  31. 31 On September 29th, 2007, Links for the Weekend, 9-29-2007 said:

    […] 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer – cool […]

  32. 32 On October 1st, 2007, Viraj said:

    very helpfull tips for beginners

  33. 33 On October 16th, 2007, My view of life : [links] 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer said:

    […] 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer.Un articol foarte bun, am mai învățat ceva interesant astăzi.Technorati tags: Visual Studio […]

  34. 34 On October 23rd, 2007, Ghillie Suits » 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer said:

    […] Check it out! While looking through the blogosphere we stumbled on an interesting post today.Here’s a quick excerpt […]

  35. 35 On December 5th, 2007, ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas « Private: .NET + OO concept + RIA(AJAX) said:

    […] http://www.chinhdo.com/20070920/top-11-visual-studio-2005-ide-tips-and-tricks-to-make-you-a-more-pro… […]

  36. 36 On January 7th, 2008, Finds of the Week - January 6, 2008 » Chinh Do said:

    […] is the currently opened item in the editor, not the selected item in the Solution Explorer. See my Visual Studio tips article for instructions on how to create new shortcuts (section 3 – Make New Shortcuts). […]

  37. 37 On January 8th, 2008, How to Open Containing Explorer Folder in Visual Studio » Chinh Do said:

    […] is the currently opened item in the editor, not the selected item in the Solution Explorer. See my Visual Studio tips article for instructions on how to create new shortcuts (section 3 – Make New […]

  38. 38 On January 9th, 2008, Lisa said:

    Help me please!!! I can’t remember which button I pressed but I remember I attend to press ctrl+s to save souce code.After I press button my source code editor(VS2005) has points instead space.Like this..

    ………………….
    ……………………….
    ……………………….
    ………………….

    Have anyone know the solution ? Thanks so much!!!

  39. 39 On January 9th, 2008, Lisa said:

    I am comment no.38.

    Sorry!!, I just found what I have done. I think I pressed view white space short cut.

  40. 40 On January 9th, 2008, Chinh Do said:

    Lisa, I didn’t know about the ViewWhiteSpace shortcut (CTRL+K, CTRL+R). Thanks for sharing it :-).

  41. 41 On February 8th, 2008, Venkat said:

    Great article. Put together for head start. Appreciate your time.

  42. 42 On March 12th, 2008, berkx said:

    For VB.net user.

    Comment for TIP #1: Express Yourself with Regular Expressions

    In the “Find and Replace Dialog Window”, change the value in
    “Replace With” box: from {[ + “\1″ ]}… to {[ & “\1″ _ ]}…

    then follow to the procedure as stated above.

    By the way thanks for this info.

    .NET is BROTHERHOOD

  43. 43 On March 12th, 2008, Chinh Do said:

    berkx: Thanks a lot for the info. I have updated my article with it. Chinh

  44. 44 On March 15th, 2008, йцукен said:

    вы все дураки

  45. 45 On April 7th, 2008, ripper234 said:

    I just learned this new trick today, and I don’t think I saw it in the post / comments.

    Dragging the current line marker upwards while debugging will reset your program’s run to that point.

  46. 46 On July 5th, 2008, Always 英文技术文章参照( 三 ){ UpdateTime:2008-7-5; } My article in the cnblogs - cnblogs.com said:

    […] 6.11个Visual Studio2005 IDE 技巧。http://www.chinhdo.com/20070920/top-11-visual-studio-2005-ide-tips-and-tricks-to-make-you-a-more-pro… 7.在C#中自定义事件。 http://www.ondotnet.com/pub/a/dotnet/2002/04/15/events.html […]

  47. 47 On July 31st, 2008, Waleed Butt said:

    Very Nice indeed…great Work

  48. 48 On August 23rd, 2008, Jak pracovat efektivně ve Visual Studiu 2005 at Programátorův deníček said:

    […] 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer Filed under IDE | […]

  49. 49 On August 30th, 2008, Greatest Hits » Chinh Do said:

    […] 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer […]

  50. 50 On September 6th, 2008, Sudarsan Srinivasan said:

    Great post. Useful hotkeys.

  51. 51 On September 12th, 2008, Uditha Madumal said:

    Useful. Well written.

    Many Thanks!

  52. 52 On September 17th, 2008, Visual studio shortcuts at Codelog said:

    […] Refer here for even more. […]

  53. 53 On October 10th, 2008, Bharat said:

    Hi,
    I am using VS 2005 V8.0.50727.762(SP.050727-7600). I have created many proejcts with this VS 2005. Every time on right clicking on project name I could choose proeprty and property page would open. This allowed me to set various prporties. But suddenly I am now not able to do this. Can any one please tell me how to restore this functionality in VS 2005 IDE?
    Thank you in advance.
    Bharat.

  54. 54 On October 13th, 2008, Bharat Gadhia said:

    Problem solved. I deleted the profile and recreated and it did the trick.

  55. 55 On October 13th, 2008, Chinh Do said:

    Bharat: Glad you solved the problem, and thanks for sharing the solution.

  56. 56 On November 20th, 2008, Nguyen Toan said:

    Thanks for your article !

  57. 57 On November 21st, 2008, vega said:

    Thx U very much~~~~~

    that is good thing for me~~~~~~

  58. 58 On December 1st, 2008, Knock knock: BCS exams « :: Ashesh Ramjeeawon :: said:

    […] 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer […]

  59. 59 On January 9th, 2009, Dominic Hawkins said:

    hi
    w9m753ne1ikksv2b
    good luck

  60. 60 On January 12th, 2009, Visual Studio 2005 IDE - Tips & Tricks « Vtheliving’s Blog said:

    […] http://www.chinhdo.com/20070920/top-11-visual-studio-2005-ide-tips-and-tricks-to-make-you-a-more-pro… […]

  61. 61 On February 10th, 2009, vignesh said:

    Thank u Boss Its very useful for me

  62. 62 On March 5th, 2009, vs2008 said:

    thanks for the nice written…

    ive just learnt about new look of VS2010… http://blogs.msdn.com/jasonz/archive/2009/02/20/a-new-look-for-visual-studio-2010.aspx?CommentPosted=true#commentmessage

  63. 63 On June 13th, 2009, Suresh R Iyer said:

    I discovered how easy it was to dock and undock (pin and unpin) the tool windows in VS 2005 (and beyond?). I have posted it as a comment to a codeproject article here: http://www.codeproject.com/…/vstogglewindow.aspx

  64. 64 On June 14th, 2009, Suresh R Iyer said:

    The link appeared wrongly in the previous comment. The link should be http://www.codeproject.com/KB/macros/vstogglewindow.aspx?msg=3079785#xx3079785xx

    Thanks.

  65. 65 On July 2nd, 2009, anand said:

    Find does not find search pattern inside collapsed functions. Is there option I can enable so that find will search inside collapsed functions also?
    thanks
    anand

  66. 66 On July 11th, 2009, Sakib said:

    In Visual Studio 2005 how can i find 5!
    plz give me the command and the loops for this operation….plz hurry i need this.tnx

  67. 67 On July 28th, 2009, Sachin Nema said:

    Excellent article ,helped me alot:)

  68. 68 On August 26th, 2009, John Jones said:

    We have a DataSet with Table Adapters built for MSAccess using OLEDB. We are using Visual Studio 2005 and .Net 2.0.
    Our goal is to use the same queries (basic inserts, updates, deletes) with SQL server.
    To this effort, we noticed when the designer creates insert, update and delete queries it encloses the table name and field names with a ` (ASCII char 96).

    For example:

    INSERT INTO `table` (`col1`, `col2`, `col3`) values (….)

    Is there a reason for this character? Assuming it’s for escape purposes, is there a setting to make Visual Studio use another character, eg “[” or “]”?
    Or to customize the way it generates the commandtext in the designer.cs file?

    The [ or ] characters (allowed in MS Access and SQL server) would enable us to use the queries in both databases.

  69. 69 On October 25th, 2009, ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas | Private: My Note said:

    […] http://www.chinhdo.com/20070920/top-11-visual-studio-2005-ide-tips-and-tricks-to-make-you-a-more-pro… […]

  70. 70 On November 10th, 2009, Andrew Phillips said:

    One kb shortcut that you missed is Ctrl+F3. I use it hundreds of time a day and many people don’t seem to know about it. Of course everyone knows F3 to repeat the last search. I find Ctrl+F3 even more useful to search for the next occurrence of whatever text you have selected.

  71. 71 On November 24th, 2009, Chinh Do said:

    Andrew: I didn’t know about Ctrl+F3. It’s a useful shortcut. Thanks.

  72. 72 On December 24th, 2009, Vaishnavi said:

    Auto Indentation- Ctrl+K+D

    Automatic Property Generation(keep cursor on the property name)- Ctrl+R+E

    Stack Unwinding during Function calls Ctrl+ minus sign(-)

    To Remove empty lines in text using Visual Studio
    http://geekswithblogs.net/mnf/archive/2008/03/04/remove-empty-lines-in–text-using-visual-studio.aspx

  73. 73 On January 19th, 2010, Harish KV said:

    Can any one know how to Create #region…. #end region in .aspx page.

    Thanks in Advance

  74. 74 On January 19th, 2010, Chinh Do said:

    Harish KV: I am sure regions are not supported in ASPX inline code. If you have a lot of code, consider moving the code to a code-behind file.

  75. 75 On January 20th, 2010, Harish KV said:

    Chinh Do,

    Thanks for your reply.
    My intension is to have a neat lay out in .aspx page also as we do tha same in .aspx.cs using #region, so the other developers can easily understand the code. Even it is more convenient to us when we come back to the page after a long time if we have regions.

    Is there any other way to create regions in .aspx page, please let me know.

  76. 76 On March 9th, 2010, Malleswar Reddy said:

    I am running visual studio 2005 on windows 7 operating system.in that i am facing one problem that is “suddenly visual studio is closing with outshowing any error”. what i have to do to solve this problem,please any one suggest me and give me just brief idea

  77. 77 On May 9th, 2010, Vs 2008/2010 IDE « Rajneesh Noonia said:

    […] Visual Studio 2005 IDE Tips and Tricks […]

  78. 78 On May 17th, 2010, Coder said:

    It hangs too ofter. I just inserted couple of lines source code to a c# class code and the GUI is frozen.
    This happens evrey now and then.
    Any tip or trick to get rid of this.

  79. 79 On May 22nd, 2010, espinete said:

    Any tips for vs 2008 ?? thanks

  80. 80 On May 22nd, 2010, Chinh Do said:

    Espinete:

    Most of the tips here should apply to Visual Studio 2008. But I’ve also been thinking about writing a tips article for Visual Studio 2008 as well.

    Coder:

    I have experienced occasional hangs from Visual Studio 2005/2008 also. When you try to do something, it would just hang there for a while. Usually it happens when I have a lot of windows/apps open. Sorry I don’t have any good idea as to what may be causing it.

    Chinh

  81. 81 On May 23rd, 2010, David Carrillo (aka Dacanetdev) said:

    Just to clarify or maybe was a problem with the HTML
    The shortcuts for Task List, Error List they are
    Ctrl + |,Ctrl T (Task List)
    Ctrl + |,Ctrl E (Error List)

    Instead of back slash it is a pipe

  82. 82 On May 23rd, 2010, David Carrillo (aka Dacanetdev) said:

    Sorry by the way the info is very useful

    Thanks

  83. 83 On June 2nd, 2010, Candy said:

    is it incredible how a post can be useful almost 2.5 years after it had been published? Thanks a lot!!!

  84. 84 On November 19th, 2010, Nice post on productivity tips « Claudio Lassala's Blog said:

    […] 11 Visual Studio 2005 IDE Tips and Tricks to Make you a More Productive Developer […]

  85. 85 On February 1st, 2011, Munazza said:

    very useful tips…Thanks…

  86. 86 On April 28th, 2011, Rajkiran said:

    What is the use of bookmarks in visual studio

  87. 87 On April 30th, 2011, http://www.online-tv-episodes.net said:

    Youre so cool! I dont suppose Ive read something like this before. So good to seek out any individual with some unique ideas on this subject. realy thanks for starting this up. this web site is one thing that is needed on the internet, somebody with slightly originality. useful job for bringing something new to the web!

  88. 88 On October 4th, 2011, Server Blog said:

    Server…

    […]11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer » Chinh Do[…]…

  89. 89 On March 21st, 2012, Manish said:

    Now i save time

  90. 90 On March 21st, 2012, 11 Visual Studio 2005 IDE Tips and Tricks to Make You a More Productive Developer « Manishkarma's Blog said:

    […] http://www.chinhdo.com/20070920/top-11-visual-studio-2005-ide-tips-and-tricks-to-make-you-a-more-pro… Like this:LikeBe the first to like this post. […]

  91. 91 On June 19th, 2012, Visual Studio – tips for managing work on many open files said:

    […] II. The most obvious one: using the ‘active files’ drop-down on the right of the tab bar which is alphabetically ordered. Lesser known fact: use Ctrl-Alt-DownArrow to open that drop-down, then start typing the file name. You get the added benefit of visualizing the available choices. [info shamelessly stolen from here] […]

  92. 92 On October 29th, 2013, Visual Studio – tips for managing work on many open files | Ask & Answers said:

    […] II. The most obvious one: using the ‘active files’ drop-down on the right of the tab bar which is alphabetically ordered. Lesser known fact: use Ctrl-Alt-DownArrow to open that drop-down, then start typing the file name. You get the added benefit of visualizing the available choices. [info shamelessly stolen from here] […]

  93. 93 On November 5th, 2013, Visual Studio - tips for managing work on many open files | Technology & Programming said:

    […] II. The most obvious one: using the ‘active files’ drop-down on the right of the tab bar which is alphabetically ordered. Lesser known fact: use Ctrl-Alt-DownArrow to open that drop-down, then start typing the file name. You get the added benefit of visualizing the available choices. [info shamelessly stolen from here] […]

Leave a Comment