Slashdot Mirror


Visual Studio Hacks

Jim Holmes writes "Microsoft's Visual Studio is an elephant of an IDE. It's got tremendous power and adaptability, but it's difficult to dig through all the less-than-helpful documentation. It's also very tough to figure out which of the many available add-on tools are worthwhile to add. Visual Studio Hacks by James Avery is a terrific reference for helping get the most out of Visual Studio." Read on for the rest of Holmes' review. Visual Studio Hacks author James Avery pages 512 publisher O'Reilly rating Outstanding reviewer Jim Holmes ISBN 0596008473 summary Get the most out of Microsoft's Visual Studio

Disclaimer: James is a friend who's helped me with starting a developers group, and I'm also working on an open source project with him. The possibility exists that I may work on a paying project with him at some time in the future; however, I haven't had any financial dealings with him so far. (Other than I still owe him a beer for coming to speak at one of our group's meetings.) For what it's worth, I spent my own money to buy this book from Amazon. End Disclaimer.

Avery's book is great both for new users of Visual Studio as well as the more experienced developer. Also, readers won't have to worry about buying a book which will be outdated when Microsoft releases its next version of Visual Studio in November. Tips and tricks are included for Visual Studio versions 2002, 2003, and 2005.

VS Hacks spreads 100 "hacks" across 13 sensibly delineated chapters. Each hack is clearly marked with its number in a blue box at the upper, outer corner of each page. Hacks are also marked with a thermometer icon representing the hack's relative complexity. One of my few complaints about the book is that the moderate and expert icons look too similar - but frankly I ignore these icons anyway, so the criticism's most likely wasted.

The introductory chapters on projects and solutions, navigation, and editor usage aren't introductory in skill level. Avery covers these topics in great depth, diving down to some useful, but less-than-obvious settings in VS's environment. Examples of this would include Hack #2: Master Assembly and Project References, where Avery shows how to add additional assemblies to the Add Reference dialog's list of .NET assemblies. This is a timesaver if you've got custom libraries you make frequent use of; adding the assemblies to the default list saves having to use the Browse button to search for the files every time you need to add them.

Some of the most uninteresting drudgework in development involves writing code for basic software elements such as business entities or data access layers. It's repetitive, it's template-like material, and it's boring. Documenting such work is every bit as tedious.

Hack #50 covers using CodeSmith to generate code via templates. Other hacks detail tying UML into the development process. Hack #81 covers using Visio for Enterprise Architects to generate code from UML diagrams. Hack #82 covers the opposite of that process: generating class diagrams via Visio's reverse engineering support. (UML's capable of much, much more than the simple drudgework of business entities or data access layers, and these hacks shouldn't be confused with anything more than a cursory introduction of how to tie UML via Visio into Visual Studio.)

One of the most useful sections is Chapter 5: "Debugging." This chapter focuses on getting the most out of Visual Studio's debugger capabilities. These hacks are critical helpers to good developers effectively use Visual Studio's debugger.

Avery covers the basics of setting up breakpoints, diving down to various options such as setting how often to break on specific break points, or setting conditional break points. He then moves on to troubleshooting breakpoints in Hack #37, and there's also great coverage on using Visual Studio to debug scripting code inside a browser session, working with SQL server, and attaching to a running process or one that's just about to crash.

I found the best content of this book in hacks focusing on making the most of tools both inside and out of Visual Studio. Hack #79 is a great section detailing how to stress test web applications using Visual Studio Enterprise Architect's Application Center Test. This hack makes it easy for readers to understand how to get detailed stress testing on a web application. Along this same line, Hack #80 shows how to make use of the Dotfuscator tool to obfuscate .NET assemblies to protect them from modest efforts at reverse engineering. (Like Java, .NET assemblies can be disassembled, revealing all your hard work and intellectual property.)

Other gems in this same arena include tools for running and debugging unit tests inside Visual Studio (#93), testing regular expressions (#100), and using tools which automatically generate documentation based on naming conventions in the source code (#69).

The mechanics of this book are great. The Table of Contents breaks down each chapter by its individual hacks, and the index is very detailed and clear. I also like how hacks are listed on the top of each page, making it quick to find something if you know the hack's number or name and don't want to fuss with the table of contents.

My sole complaint about the book (aside from the annoying thermometer icons I've already mentioned) is that it's not always clear which add on tools work with which version of Visual Studio.

The author maintains a website specifically for this book, complete with code and tool downloads. RSS feeds are also available to monitor any updates the author makes.

This book is a critical addition to the bookshelf for any developer who spends any amount of time working in Visual Studio. You'll become much more productive by using tips in the book, and you'll find tips to help you decide which add-on tools you'll want to make use of. More importantly, you'll understand how to get the most out of Visual Studio's capabilities.

You can purchase Visual Studio Hacks from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

65 of 437 comments (clear)

  1. Visual Studio hacks? by Saeed+al-Sahaf · · Score: 3, Funny

    Yes, I know a lot of Visual Studio hacks. Some say it's coders like them that are the problem with software today...

    --
    "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
  2. Interesting review by WillAffleckUW · · Score: 4, Informative

    although it does mention most of these hacks won't work when the new Visual Studio comes out.

    But informative none the less.

    --
    -- Tigger warning: This post may contain tiggers! --
  3. The "Hack" Culture by yellowbkpk · · Score: 3, Interesting

    Is it just me or is a "hacking" culture growing out of the internet? People are getting fed up with the limitations put on them by business' slowness, so they push the limits of current technology to meet their needs.

    Is this because people's needs are growing faster than industry's ability to provide them?

    1. Re:The "Hack" Culture by digidave · · Score: 5, Insightful

      No, it's just that every little lesser-known thing gets called a hack nowadays.

      In this case, most of the "hacks" look like normal VS features that many people are unaware of. These sorts of things are better described as "tips", but that hardly draws any attention now, does it?

      If it was called How To Boot Your Walkman With Emacs, now that would be a hack.

      --
      The global economy is a great thing until you feel it locally.
  4. Ultimate Killer App by PaulQuinn · · Score: 5, Informative

    MS Visual Studio is Microsoft's ultimate killer app. It's just the single best tool for software development. I use it even when developing for Linux.

    Until Linux gets an IDE at least 75% as good as MSDev, top-notch large scale applications for Linux will remain few and far between.

    1. Re:Ultimate Killer App by ciroknight · · Score: 3, Interesting

      Totally Agreed. XCode's just the same way for the Mac.

      I don't think a GUI platform can call itself complete until it's got an IDE that's worthy for programming.

      The only one I've seen so far for Linux that's up to par (and just barely) is KDevelop, which is entirely useless to you if you don't use Qt, like myself.
      And yes, I know about a lot of the alternatives, they just all suck so bad they aren't worthy of mentioning by name. Eclipse is better than most, but is java, and slow....

      --
      "Victory means exit strategy, and it's important for the President to explain to us what the exit strategy is." G.W.Bush
    2. Re:Ultimate Killer App by oniony · · Score: 2, Insightful

      Yup, let's just pretend Eclipse doesn't exist.

      --

      Powered by onion juice.

    3. Re:Ultimate Killer App by NoneExpected · · Score: 2, Funny

      Visual Studio appears to actually be the killer app to my system.
      I have a fairly decent system, but VS drives to incredible slowness.
      When I exit I have to re-boot to get the speed back.
      Does any one else have this issue?
      Seriously I'd like to know.

    4. Re:Ultimate Killer App by oGMo · · Score: 2, Insightful
      I don't think a GUI platform can call itself complete until it's got an IDE that's worthy for programming.

      I disagree... I'm not a fan of your monolithic IDEs at all. My GUI is an IDE:

      • ROX-Filer, which is highly customizable and integrated with the shell
      • XEmacs or vim as your preference goes, which are two highly advanced programmable editors
      • bash, zsh, csh, or your other favorite shell
      • autotools for building

      These tools combine into an "IDE" that is my desktop. I have the best-in-class for every component. Beats a jack-of-all-trades IDE that lacks in any number of regards and takes huge resources.

      --

      Don't think of it as a flame---it's more like an argument that does 3d6 fire damage

    5. Re:Ultimate Killer App by AxemRed · · Score: 2, Insightful

      World of Warcraft is my killer app. //Read into that whatever you want.

    6. Re:Ultimate Killer App by swissmonkey · · Score: 5, Interesting

      One hint :

      Go take a look at what Visual Studio can do, you will see many features(incredibly powerful Intellisense being only one of them) that will save you time and sweat.

      This message provided courtesy of a programmer who used to be big fan of XEmacs et. all until he discovered what Visual Studio(and other good IDEs) can do.

    7. Re:Ultimate Killer App by Anonymous Coward · · Score: 2, Informative
      >Until Linux gets an IDE at least 75% as good as
      >MSDev, top-notch large scale applications for
      >Linux will remain few and far between.

      I don't understand why you were modded as insightful. I'm not trying to be sarcastic, but how precisely is MS Visual Studio a "killer app"? What makes it so impressive in your opinion that no Linux development environment compares with it, or
      even as you say, "75%" as good?

      For example, my development environment of choice is xemacs which I consider hands down the ultimate development environment because:
      • It runs on every platform I care to use
      • It allows me to set my choice of keyboard short cuts my way
      • It doesn't require the use of a mouse in order to any of my choice of editing features,
        such as file open, save, write, insert, split screen, find, find/replace, capitalize, uppercase, lowercase, view info pages, open shells, fontify based on type my files, etc.
      • It has an incredible array of features, not just limited to editing files, but also features such a loading/saving across networks, run various shells, allow me to save off entries in my programming diary (ChangeLog files for those not familiar), lets me choose my compilation command, etc.


      Just being able to do so much without having to use the mouse is a victory in my mind. Having to use a mouse for any activity is defeat, because it requires a person to shift their visual focus from what they are supposed to be doing (editing scripts/programs) to looking for a mouse to do something and then have to move the focus back
      to the editing. It's a cumulative loss of time that I find intolerable.

      So could you please explain again it what way do you consider MS Visual Studio a superior product?

      --Johnny
    8. Re:Ultimate Killer App by RLiegh · · Score: 2, Insightful

      Until Linux gets an IDE at least 75% as good as MSDev,
      You haven't tried kdevelop or anjuta then, I assume? Not being familiar with VS (too poor, lol) I am not sure how they stack up feature wise, but I bet that both meet your "75%" criteria.

      top-notch large scale applications for Linux will remain few and far between.
      You mean like Open Office, Mozilla or Blender3d? We have the apps; it's the mindshare we're lacking (if we're lacking anything, which I doubt now that we have corporate sponsorship from novell and ibm).

    9. Re:Ultimate Killer App by yamla · · Score: 2, Insightful

      That's interesting, I approach things exactly in the opposite direction. I am developing for Windows but use Linux as my primary operating system. I use KDevelop and prefer it over Visual Studio (disclaimer: haven't tried VS2005). I just find too many things are missing from VS for my liking. Good svn integration, doxygen, good command-line tools like find and grep, sloccount, etc. etc. etc. Additionally, compiles are SLOW using Visual C++. Much much slower than in Linux when I use ccache and also distcc (though I'm not using distcc at the moment). Even without ccache and distcc, Linux still wins pretty handily because nmake STILL doesn't support parallel builds to take advantage of hyperthreading and multiple CPUs (though I'm not using those at the moment, either).

      To each their own.

      --

      Oceania has always been at war with Eastasia.
    10. Re:Ultimate Killer App by Lally+Singh · · Score: 2, Funny

      Dude, you make me wish I didn't spend all of last week trolling, killing my chances of mod points this week.

      --
      Care about electronic freedom? Consider donating to the EFF!
    11. Re:Ultimate Killer App by Castar · · Score: 3, Insightful

      Eclipse is great for Java development, but setting it up for C++ is a pain - especially compared to VS.

      --
      I yearn for you tragically. A. T. Tappman, Chaplain, U.S. Army.
    12. Re:Ultimate Killer App by EvanED · · Score: 2, Interesting

      It's not so much that I like VS's implementation of Intellisense. (It was reasonably poor in VS6, often not showing up. I've had little problem with VS.NET though.) I just used that term because it exactly describes what I'm talking about. (Something like 'code completion' doesn't, because I've seen other things that could be called that.)

      I've done a lot of Java work recently in Eclipse for instance, and think that the Intellisense in Eclipse is fantastic.

    13. Re:Ultimate Killer App by AuMatar · · Score: 2, Insightful

      I find intellisense the single most annoying feature of any program I've ever used. I'd turn clippy on before using it.

      --
      I still have more fans than freaks. WTF is wrong with you people?
    14. Re:Ultimate Killer App by justasecond · · Score: 2, Insightful

      Yah. Gotta love all that automatically-generated API crap that VS dumps into your source:

      // {AFX_DATA_MAP(BHatchBoundaryTab)

      etc. It gives you something to read while you're looking for your code.

      God help you if you accidentally delete one of those comments.

      Delphi (for example) keeps your source code as you wrote it. Like every freakin other IDE in the universe.

      Oh, and how many versions of msvcr71.dll are there? (Seriously, I'm asking...MSDN's dll help database claims the file doesn't exist.)

      By the way, does Visual Studio ship with the source to the runtime libraries so's you can step the debugger through them? No? (Delphi does.)

      VS isn't exactly bug-free either...Googling visual studio bug results in 760,000 hits; searching MSDN for PRB and Visual Studio results in *many* results (I got tired of clicking on "next", but it's a lot).

      Oh, and VS's help...sucks. For example, with VB 6 (no, I *do not* develop in VB), asking for help on, e.g., Val() results in about 20 freaking pages of help to choose from. What idiot decided to integrate the entire MSDN knowledgebase into VS's help?

      VS bites.

    15. Re:Ultimate Killer App by swissmonkey · · Score: 2, Insightful

      There are similar ways to do it for XEmacs and other editors, all less practical and efficient than the VS implementation.
      Not being context sensitive is simply unacceptable for example. When you start using namespaces, many classes, ... it's simply essential.

      Regarding This is the power of a programmable editor. If there's a feature you want, you can add it. If there's a feature you want to change, you can modify it. If there's a misfeature, you can get rid of it.

      Hint #2: You can write plugins for VStudio too.

    16. Re:Ultimate Killer App by David+Horn · · Score: 3, Funny

      In that case, you obviously haven't tried the one in Visual Studio 2005. It's like seeing God. Only through your keyboard...

      --
      PocketGamer.org - For the gamer on the go!
    17. Re:Ultimate Killer App by hikerhat · · Score: 4, Interesting

      If you ever work on a big application where you can't memorize the thousands of function and method signatures, or you have to quickly use code you've never seen before, intellisense will become more valuable to you.

    18. Re:Ultimate Killer App by EvanED · · Score: 3, Insightful

      Some implementations of "Intellisense" (in quotes because the term is actually VS specific, but I'm using it generically) show you source comments.

      Besides, what if you know most of the signature, but can't remember which order the args come in? Don't really need the comments for that.

      Finally, it just speeds up typing. Instead of typing out a whole name -- and very easily making a typo -- you usually just have to type a few characters.

    19. Re:Ultimate Killer App by Unoti · · Score: 2, Insightful

      its better to look up its definition in the source so I can see the comments on the inputs.

      Perhaps you should actually try intellisense before you talk out your ass. Intellisense does show you the comments associated with the method you're calling, as well as the return type, and the comments associated with each of the individual parameters. As you move through the parameters, intellisense updates the tooltop to show you the comments associated with each input parameter separately. People can blast Visual Studio all day, but I'd be willing to bet that almost none of them have actually used Visual Studio on a non-trivial project.

    20. Re:Ultimate Killer App by Corngood · · Score: 3, Insightful

      In visual studio you can attach to a running process on another machine and debug it exactly as if it were running locally. You can step from sql to C++ to .Net (lots of languages) to DirectX shaders... You can modify the code of said running process, recompile it, and patch it back into memory without restarting it. You can even do these things if the other machine happens to be an xbox. It's a massive set of tools, and the debugger is just one insanely awesome part of it.

    21. Re:Ultimate Killer App by Calroth · · Score: 4, Insightful

      VS isn't exactly bug-free either...Googling visual studio bug results in 760,000 hits

      Google search for visual studio bug - 840,000 results
      Google search for eclipse bug - 1,480,000 results
      Google search for emacs bug - 1,170,000 results
      Google search for slashdot bug - 1,460,000 results
      Google search for bright purple elephant bug - 131,000 results

      Congratulations! You have given us a meaningless statistic.

    22. Re:Ultimate Killer App by Frankie70 · · Score: 3, Insightful


      By the way, does Visual Studio ship with the source to the runtime libraries so's you can step the debugger through them? No? (Delphi does.)


      Actually, VS also ships with sources for the Runtime Library - go check your install again.

    23. Re:Ultimate Killer App by nmg196 · · Score: 4, Insightful

      > if I can't remember the signature, its better to look up
      > its definition in the source so I can see the comments on the inputs.

      Intellisense in VS *DOES* shows you the comments from the source. Why do you think that the source comments have to be entered in XML?? Why do think there's a whole thread of people saying how good it is even though it's an MS product? If you're not seeing the comments, then you haven't been following the templates or RTFM.

      I hate to say it but it's fucking amazing - especially in VS.NET 2005.

      The thread title is correct - it's Microsoft's Killer App.

      > Besides, if you divide up the work correctly, you won't be using more
      > than a few percent of the functions in a program,

      Not all companies are big enough to "divide up the work". I have to do the entire project on my own. Which after 6 months is a LOT of functions. I guarantee it would take nearly everyone except genius autistic programmers more time to write large projects if if VS.NET didn't have any intellisense.

      I can't see how it can be annoying. If you type quickly without pausing then it doesn't even appear. If you really do know what you're supposed to be typing then you probably won't pause because. The only reason I can think of to pause halfway though typing a function call is if you're having to go and find the function definition because you can't remember what the next argument is :)

  5. Browse info for g++? by Catamaran · · Score: 3, Insightful
    VS has some very esoteric features, but I love the integrated browse info. It's better than ctags/etags because it uses the compiler to generate the info. Has anyone here thought about doing something similar with g++/gdb? There are a couple of ways it could be done.
    • have g++ generate tags
    • have an application to build tags from gdb-enabled binaries.
    --
    Test 1 2 3 4
    1. Re:Browse info for g++? by Catamaran · · Score: 3, Interesting

      Eclipse is very nice. It looks like the C++ plug-in (CDT) uses a C/C++ parser written in Java. The parser is mostly, but not completely, compatible with gcc. See http://download.eclipse.org/tools/cdt/docs/specs/D esign_Specs/Parser/Parser-2.0-Design.pdf.

      --
      Test 1 2 3 4
  6. Torrent Link by OsirisX11 · · Score: 3, Funny

    Anyone got one?

    1. Re:Torrent Link by Anonymous Coward · · Score: 2, Informative

      Sadly you have to be a MSDN subscriber to get Visual Studio 2005 Beta, but the Express editions are available free of charge for everybody. They are basically the same as Visual Studio, but only implement one language (i.e. Visual C++ Express, Visual C# Express, Visual J# Express, etc). They are in beta, so there are a few bugs here and there. Overall they are pretty damn good.

  7. Recommend: Best Kept Secrets in .NET by eltoyoboyo · · Score: 3, Informative

    I highly recommend

    Best Kept Secrets in .NET
    by Deborah Kurata

    This has plenty of good tricks for visual studio:

    Chapter 1 - Hidden Treasures in Visual Studio
    Chapter 2 - Doing Windows Forms
    Chapter 3 - Code Tricks
    Chapter 4 - Much ADO
    Chapter 5 - Defensive Development

    --
    Have you Meta Moderated t
  8. Re:Your number one IDE by DaHat · · Score: 2, Interesting

    I tend to work on code in Visual Studio 6 at least once a month that still works just fine here, ~10 years after its release.

    But even when it comes to VS2003, last time I checked C# and .NET for example were based on EMCA standards, standards which have been implemented for use under Linux, MacOS and others, all making it possible for you to build an application in VS2003 and have it run on other systems.

  9. Re:Windows programming is purposely vague.. by Timesprout · · Score: 5, Informative

    Four letters. MSDN. Now show me something comparable in the OS world.

    --
    Do not try to read the dupe, thats impossible. Instead, only try to realize the truth
    What truth?
    There is no dupe
  10. The biggest annoyance with DevStudio by DrXym · · Score: 4, Insightful
    Is the the help system. I don't program Windows CE, but it's infested with stupid bloody WinCE specific help. Search for a Win32 function such as CreateWindow and often you're lead to the WinCE implementation. And the same for ATL & MFC classes. Worse is if you chose not to install the WinCE help at all since it still includes the index to the WinCE help. So double clicking on a help item prompts you to insert a CD. Filtering helps a bit but not a great deal since often you want to search anywhere, especially if your app spans Win32 and .NET for instance.

    Even with this annoyance it's still better than help in XCode on the Mac. XCode 2.x is a big improvement but it's still hopeless compared to MSDE.

    A second annoyance to DevStudio is the sheer mess of dockable windows. VC98 had it just about under control but since DevStudio 2002 it has become a disaster zone of tabs, splitters, pushpins, floaters and toolbars. Just trying to get all the relevant information onto the screen is hard enough. The pushpin model just works badly - either you pin a window to a frame or it annoys you by floating in and out at just the wrong point in time such as when you're mousing around.

    A final irritation is that DevStudio is extremely primitive compared to a lot of Java suites. Eclipse is hopeless for visual design but it kicks DevStudio around the shop for sheer coding. Being able to hit Shift+Ctrl+R and rename all references to a class or variable everywhere in Eclipse is mindbogglingly useful. While I expect the next incarnation of DevStudio will allow you to rename a class, it's notable by its absence in the current releases. It's not like Eclipse just introduced this feature since JBuilder has had it for years.

    1. Re:The biggest annoyance with DevStudio by skraps · · Score: 2, Informative

      A also agree that it is annoying, but in most cases the documentation is near identical for the CE version. I just use the CE docs unless I have reason to think they are different for some particular function.

      --
      Karma: -2147483648 (Mostly affected by integer overflow)
    2. Re:The biggest annoyance with DevStudio by Tim+Browse · · Score: 2, Interesting
      Thank Bjarne Stroustroup for the fact that there's no refactoring support for C++.

      While we're there, we should probably thank him for designing and creating one of the most popular and successful programming languages on the planet.

      If we're being fair ;-)

    3. Re:The biggest annoyance with DevStudio by cpu_fusion · · Score: 3, Interesting
      >"Eclipse is hopeless for visual design"

      Ever try the Visual Editor for Eclipse?
      http://www.eclipse.org/ve/

      It's quite nice.
    4. Re:The biggest annoyance with DevStudio by AaronBrethorst · · Score: 5, Interesting
      I just talked with the program manager who owns our help system and he promised me that we've fixed the first issue you describe in VS 2005. You can filter out specific blocks of content now, which will enable you to get rid of the WinCE-specific help.

      Also, you can now get content via the Internet or through the Local Help system, which means that you shouldn't ever run into "please insert a cd" messages again.

      As far as our Tool Window situation goes, we have a way to go on improving this. I think we're doing better in terms of window management in Whidbey (VS 2005) than we did in previous releases. One cool new feature, the IDE Navigator (Ctrl+Tab) lets you navigate between every open document and tool window in the IDE in a fairly reasonable manner.

      Also, we've added in either 5 or 6 refactorings to VS: you can perform operations like Extract Method or Rename Symbol now through that interface.

      Finally, if you have feature requests or bug reports please post them on our Product Feedback Center. I happened to run across this post, but there's no guarantee that a Slashdot post will ever be seen by the team that owns a specific part of VS. The MSDN Product Feedback Center will let you submit issues or suggestions to us directly and will guarantee they're routed to the right people.

      Cheers -- Aaron

      Oh yeah, and I feel like I owe a VS "hack" now. When you're in the editor you can enable incremental search by pressing Ctrl+i and then typing a string to search for. The next instance can be jumped to by pressing Ctrl+i again.

      --
      No, but I used to work for Microsoft.
    5. Re:The biggest annoyance with DevStudio by professorfalcon · · Score: 2, Funny

      Interesting, but I think I still prefer CTRL-F, enter text, , , F3.

    6. Re:The biggest annoyance with DevStudio by Malc · · Score: 2, Interesting

      Ever tried using TweakUI with its X-Mouse enabled? VID was the first app that misbehaved with it. That's okay, I didn't have to use it. VS.Net picked up the bad habits and forced me to go back to Windows' normal mouse behaviour. Why? Everytime the mouse goes over the app window it pops to the front, making things extremely frustrating.

    7. Re:The biggest annoyance with DevStudio by dkf · · Score: 2, Informative

      Part of the problem for VE is that Java doesn't have a simple XY layout model

      Actually it does. Set the layout manager to null and you can put components at any location you want and set the size to anything you want. Of course, if you've got the ability to change font sizes (e.g. to support people with visual difficulties, which is a legal requirement in some places) then absolute layouts suck horribly...

      --
      "Little does he know, but there is no 'I' in 'Idiot'!"
  11. Portability by Anonymous+Brave+Guy · · Score: 4, Interesting
    For making non-standards-compliant, non portable, code that wont work in 4 years.

    Erm... We write highly portable libraries in C and C++ at work. They have to compile on Windows, Linux, Solaris, HP-UX, AIX, MacOS X, and often under several different toolsets on each OS.

    Our whole dev team is free to develop using whatever software we find helpful. We have GUI guys and CLI guys, Windows guys and Linux guys, emacs guys and vi guys, etc.

    The one thing almost everyone has in common is that they use Visual C++ as their primary IDE. That's not because we're ill-informed or haven't tried the alternatives, it's because most of us think it's the best IDE available to help us do our jobs.

    --
    If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
  12. Is it all about other tools? by Anonymous+Brave+Guy · · Score: 3, Interesting

    A book on Visual Studio hacks has a lot going for it, but the examples in the review mostly sound like discussion of add-in tools, rather than VS itself.

    Many people don't take advantage of even simple things like customising autoexp.dat for debugging, and don't know about undocumented UI tweaks like displaying a marker line at column N. Many of these little touches are what makes VS better than the alternatives for a lot of jobs, and why Microsoft never makes more of them I don't understand. Are things like the two examples above covered in the book?

    --
    If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
  13. Tomato... by xtracto · · Score: 2, Informative

    I remember when I programmed in Visual Studio there was a good add on called Visual Assist, the company is Whole Tomato I used like 3 years ago and it was quite nice, it adds some features to the IDE that make coding easier.

    --
    Ubuntu is an African word meaning 'I can't configure Debian'
  14. Re:Book should read by Anonymous Coward · · Score: 2, Funny

    You misspelled emacs

  15. Re:Windows programming is purposely vague.. by Timesprout · · Score: 3, Insightful

    Only on /. would someone be dumb enough to cite sourceforge as a good example of a fully integrated help/documentation/examples/technical discussion/articles/books/advise system. Sourceforge is many things but if you look at 95% of the projects on it they have nothing whatsoever to do with quality code or documentation.

    --
    Do not try to read the dupe, thats impossible. Instead, only try to realize the truth
    What truth?
    There is no dupe
  16. Hacking add-ins in perl by MeerCat · · Score: 2, Interesting

    So I normally prefer to use emacs as my IDE, especially for anything complex, but for those times when I need to use Visual Studio I've been getting a little bored with the standard tools so hacked together an add-in (not just the tools or macros, but the proper add-in mechanism) framework entirely in perl... suddenly I can knock up simple reg-exp based editor tools and I don't need to descend to some crappy VB/C# level coding to do so...

    But has anyone noticed what a complete mess the Visual Studio add-in API is ? A hybrid mixture of DLL export functions and nearly-COM like objects... very 1993... I think it must count as the biggest hack in Visual Studio.

    --
    I spent a lot of money on booze, birds and fast cars. The rest I just squandered. - George Best
  17. zerg by Lord+Omlette · · Score: 2, Informative

    If Visual Studio isn't your bag, but you still like Visual C++, then grab the Visual C++ 2003 toolkit (just the compiler, free) and stick Code::Blocks on top of it.

    --
    [o]_O
  18. Related book. by MythMoth · · Score: 2, Interesting

    This is more in-depth than you might expect:
    http://www.amazon.com/exec/obidos/tg/detail/-/0596 003609/

    --
    --- These are not words: wierd, genious, rediculous
  19. Re:Windows programming is purposely vague.. by aztracker1 · · Score: 2, Informative

    WTF are you talking about? have you even *LOOKED* at the msdn documentation? hell, just the .Net sdk docs are more consistant, and organized than *ANY* api docs for any other platform I've seen.

    --
    Michael J. Ryan - tracker1.info
  20. Re:Most Requested VS Hack by JamesAvery · · Score: 2, Insightful

    You can download an add-in to provide scroll wheel functionality in VS6.

    http://support.microsoft.com/Default.aspx?id=83791 0

  21. Re:Yeah, but.... by Anonymous Coward · · Score: 2, Informative

    Open the .dsp file. Near the top you will find something like:

    # Begin Project
    # PROP AllowPerConfigDependencies 0
    # PROP Scc_ProjName
    CPP=cl.exe
    MTL=midl.exe
    RSC=rc.exe

    Change "cl.exe" to your favorite C++ compiler.

  22. Re:What does Microsoft use? by ninja_assault_kitten · · Score: 2, Interesting

    Who the hell told you that?

    I've done my time at MS and that statement is completely false. While different people have different preferences (even at MS), VS is still the IDE of choice for most of us. At least when we're writing code for MS-based operating environments.

  23. Here is another review... by rgelb1 · · Score: 2, Informative
  24. Re:What does Microsoft use? by Procyon101 · · Score: 2, Informative

    I've been on a few teams here at MS, and I must say that the source isn't that hard to get too. Now getting WRITE permissions too it is a pain, but right now I can see all the source to SQL, most of the source to the CLR and VS, some of office, some Windows, and I'm sure anything else could be gotten by just asking. (if it exists... I was looking for diamond.exe source a couple weeks ago to fix an AV we keep getting and apparently no one has compiled that thing since '96 and we couldn't find it.)

  25. Re:Yeah, but.... by Xyrus · · Score: 2, Insightful

    In a word, yes.

    I did something similar for Visula Studio 6 when I was working on a project for a couple of embedded platforms.

    VS .NET can be customized as well. Better yet, you coiuld write a plugin app that would take advantage of all the settings and translate them to their gcc equivalents.

    It just depends on how much time you want to take.

    ~X~

    --
    ~X~
  26. ASP.net and sourcesafe. by fishlet · · Score: 2, Informative

    I've used Studio 2003 new for the last year and a half. Overall I like it alot and wish I had a linux equivilent (monodevelop has SOOOOOOOO far to go). The only thing I hate hate hate hate (x1000) is it's lousy integration with source safe when it comes to ASP.net projects. Ever try moving a web project from one location to another? Or try to get a un-source controlled copy of your project. Good luck, it's possible but excruciatingly painful.

    Just my $1 and 2 cents.

  27. The one VS.Net 2003 plug-in I cannot live without by SpryGuy · · Score: 2, Interesting

    Resharper.

    It adds real-time syntax highlighting, additional keyword coloring, superb code navigation features, and code refactoring features, among many other very useful items.

    If you are using Visual Studio and doing any C# coding at all, you need to check out Resharper, from JetBrains... http://www.jetbrains.com/resharper/. I frankly don't know how anyone lives without it (or at least something similar).

    Version 2.0 (due out late this year) will also support 2005, Visual Basic, and ASP.Net coding

    --

    - Spryguy
    There are three kinds of people in this world: those that can count and those that can't
  28. Re:The Delphi parser by Mornelithe · · Score: 2, Interesting

    Javac is written in java, so compiling anything requires firing up a jvm first, which can take a while.

    However, since Eclipse is written in java, the jvm is already running, so it can just call up the appropriate javac classes and run the compiler in-process, removing the latency of starting up a new jvm. That's most likely why Eclipse is much more snappy at compiles (off the top of my head; I haven't written any Java in a while).

    Alternatively they could be using IBM's jikes compiler, which is written in C or C++, so it also doesn't have the startup requirement of loading a jvm.

    --

    I've come for the woman, and your head.

  29. Just Bought the Book by Pman1 · · Score: 2, Informative
    I don't care what anyone says, VS is tight.

    Tightly integrated that is with SQL Server for example. Need to debug a stored procedure? Set a break point in it using VS and step through it, adding watches and such like if you were debugging C# code for example. Now that is the shiztnizz.

    Oh how I wish my company would upgrade both VS and SQL Server, guess I'm stuck with VS 2003 for a while. Sigh... ;)

  30. Re:One major shortcoming by NDaxi · · Score: 2, Insightful

    For this issue, you can use Whole Tomato's Visual AssistX. It works on every version of VS that MS released. Link: http://www.wholetomato.com/

  31. Re:The one VS.Net 2003 plug-in I cannot live witho by The+Grassy+Knoll · · Score: 2, Interesting

    Agreed, it's great.

    But if you're working on more than one project at a time, the "load time" is very annoying. (It seems to build a big cache of methods, etc., when it loads)

    > Version 2.0 (due out late this year) will also support 2005, Visual Basic, and ASP.Net coding

    What do you mean by "will support ASP.NET"? That's what I use it for already.

    .

    --
    They will never know the simple pleasure of a monkey knife fight
  32. Re:Ah, the pity... by Tarwn · · Score: 2, Insightful

    I shake my head and marvel...poor, closed-minded souls who se nothing but an MS product and think they are on the top of the world for ridiculing it.

    *sigh* The trolls do rush to these threads. Meanwhile we who actually try things before denigrating them have found an extremely capable IDE, enjoying the capability to code in/edit Ada, APL, ASml, Caml, Cobol, Delphi, Forth, Eiffel, Fortran, Haskell, Lisp, Lua, Mercury, Mixal, ML, Mondrian, Nemerle, Oberon, Pascal, Perl, PHP, Prolog, Python, RPG, Ruby, Scheme, Smalltalk, C#, C++, J#, VB.Net, XML, HTML, ASP, ASP.Net, ...

    And what do people say to this? Dismiss it all with a handwave - MS Bah! - and stick to their advanced text editors because they know it. And it's easier.

    Well, no arguments there! But I chose not to stck to any one language or editor. Knowing only one editor and having only one toolset was fine on the Commodore Vic-20, and unfortunatly Emacs was never as good as vi :). And when I decide to write an application that will only ever run on Windows...or in a web browser...or in mono...I realized that it would actually take a little work to learn a new IDE. I asked myself if I was man or mouse.

    I picked man. I decided to take the brave step and actually learn how to use something beyond a text editor. To learn how to make the editor fill my needs instead of assuming it would limit me to only a small subset of projects. After all, I reasoned, if my sole criteria were "easy to use" and "I already know it", then by the same logic I should have never learned how to use even the best text editor (vi).

    Anyway, it's no skin off my nose. So go on, Anti-Microsoft serfs, enjoy your little bag of tricks for your script typewriter! Have your fun. Nobody said that we all had to be professionals! And at least you have one thing to brag about - you didn't bother to expand your skillset because it was MS! And continue to dream those fond dreams of catching Virii in the wild, of creating single script solutions to strip them out of messages, of your own advantages over virus writers who clearly can't know more than VB. An example does not define a set, which is why professionals try to understand what they are talking about before they open their mouths.

    --
    Whee signature.