10-4 Episode 5: Code Focused in Visual Studio 2010
- Posted: Jan 16, 2009 at 3:25 PM
- 200,708 Views
- 33 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
In this episode of 10-4, we look at the new code editor in Visual Studio 2010. We'll try out some of the new code navigation features that make it easier to move around in your source code. Then we look at how Visual Studio 2010 makes Test Driven Development a lot easier. Finally, we'll see how you can extend the new editor with your own functionality.
For more 10-4 episodes, be sure to visit:
http://channel9.msdn.com/shows/10-4
Visual Studio Topic Area on Channel 9:
http://channel9.msdn.com/VisualStudio
Visual Studio 2010 CTP VPC:
http://tinyurl.com/GetCTP
Managed Extensibility Framework Project
http://codeplex.com/MEF
Visual Studio 2010 Training Kit
http://tinyurl.com/VS10Kit
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
One small comment:
I noticed this in the code for the editor add-in:
[Order(Before="Selection")]
We've been doing the same thing in an in-house framework, specifying ordering constraints and letting the framework calculate a total ordering from the partial ordering. However, we concluded that a statement like:
Before="Selection"
could sometimes, depending upon the time of the day, day of the week, the mood of the programmer, the weather etc,
be interpreted as the current component being constrained to be before "Selection", other times to be interpreted as "Selection" being constrained to be before the current component. (ie, totally ambiguous)
We fond the situation to improve a lot when we added a little 'Me' at the end of 'Before' (and 'After'), like:
[Order(BeforeMe="Selection")]
Cheers,
Jarle
There's always something to complain about...right? :')
If you're not able to keep your focus on the Visual Studio part, it's not the fault of the presenter.
The logo is from my college, not a football logo and its a sticker on the wall in my office, which is very much like a dorm room. And yes, when it comes to video, I am an amateur and we intentionally keep these videos casual. We'll get better over time, but If you want professionally produced marketing videos, you'll need to find them somewhere else.
Lets use the comments to discuss Visual Studio 2010.
Thanks,
Drew
Well done. Really appreciate you putting these short videos together. With all the tech demands and trying to learn VSTS 2010, this is a great quick-hit. Can't wait for RTM!
Ummm, and for the record, Go Bucks!
But the extensibility of it is great. Especially the usage of MEF. I'm playing arround with MEF a little bit and it looks very very promising. I like the other features, like the navigation, as well!
Thank you, all sounds good!! Well Done!
I think I suggested already on one Microsoft's website (in 1874) to have the optional coloured editor's tabs so when you work with more projects it would be easier to recognize quickly where the opened document belongs to.. not sure if it makes sence to anybody ha ha
http://www.vaclavelias.com/Projects/visualstudio10/VisualStudio10Editor.jpg
Cheers, Vaclav.
2.) Is there a way to change the color of the marked references, because in the current color I cant see anything.
I love huge monitors, but unfortunately you can only get them with a cheap TN Panel if you dont want to pay >1K $. So I can not really decide between white and a very light gray like in this case (tested with my 28" Hanns.G at home, but also with my cheap standard 22" Acer monitor at work), if you are looking from the wrong side and I think I am not the only one.
3.) Making the editor in WPF is a good thing. I love this new zooming function. I was searching for this the whole time (and maybe also buy larger monitors to get more resolution and more code on the screen).
I agree, the logo and the large PIP is distracting -- plus a 4th of the IDE is hidden by the PIP. Please stop using the PIP!
I'm not sure why the lower quality version got linked again - I originally had the high quality version set. I switched it back and you should have clear video again like before. Thanks for catching that.
PS - I don't think there's any harm in promoting your sports team. Hey, it just happened to be on your wall.
If you have any experience with ReSharper from JetBrain, you will see what a huge COPY has MS made this time...
anyway, as a MS Dev, there is nothing to lose though ...
I have been using ReSharper only for 5 days and I can see some nice benefits but in my opinion most of them were supposed to be in Visual Studio anyway. Visual Studio evolves
, demands increase and new features will be implemented in Visual Studio anyway
if there is ReSharper or not and even the features are same or similar... 
2.) I dont think its a good idea to use hundreds of external tools. The most important features should be included in VS directly. If there is a nice feature that another application used, then why not copy it. On the other side I dont see a problem if someone else copies a feature of VS like Java did with the for each loop from C#.
Enjoyed reading through your articles.
1) Having to manually hit refresh should be a VS option setting. The default should be auto unless it is too slow. If it's too slow then the items should load incrementally.
2) When (if) you click refresh you should not have to re-expand the treeview. All nodes that were expanded that haven't been removed from the tree (due to the new scope) should still be expanded and the selected node (if it's still in the tree) should be selected. If not the next highest node should be selected.
An excellent example of this is Mathematica http://www.wolfram.com/products/mathematica/index.html. Regions of the page are code, regions are interactive, and regions are presentation output.
In Visual Studio we could use this concept to include unit test results or generated HTML documentation. Imagine if you could have an interactive grid inline in the editor that you could use to test functionality of the method you're working on.
Obviously there are plenty of times when this kind of bloat is undesirable, but I think it could be fantastic where you need code to be highly documented.
In terms of the source, it could probably be added into the existing triple-slash XML comment system. Visual Studio could optionally render these features (allow it to be switched off for performance), other editors would see comments only.
Drew,
I think that the comment was a valid one.
We understand that you are aiming to keep the videos casual, but at the end of the day you are representing a larger entity than yourself. I don't believe that anyone is asking you to change how you work, nor the environment that best suits your needs, my office also bears a resemblance to a dorm room, however when providing a showcase for a product on which I am working, it would look very amateurish and unprofessional if I were to bring my intended audience into "my world".
I believe the point being made was a constructive criticism, to some the college logo is obviously a distraction, and since you now work for Microsoft and not your college, perhaps a Microsoft Logo might be a little more appropriate.
With that said ... great video, thanks for the insight and keep up the good work :o)
Very Notepad++ and JetBrains Re-Sharper.
I like the quicksearch, but one thing that I would still like to see (and haven't seen yet - or got hold of the CTP) is a function outline view for javascript files. Something like the drop down list for selecting methods in a code file and like the outline view in Aptana. Working with Javascript files in Visual Studio is still a pain.
I guess I won't be paying for the next upgrade to Resharper! Oh well, it was a good company while it lasted. I hope you guys at least offered jobs to the lead developers from JetBrains.
Keep the videos coming.
Where is the PianoKeys adornment sample located at?
I can't seem to find it anywhere.
Drew, maybe you'll read this and be able to help with an issue.
When you type something like if ( true ) and hit <enter> it always tabs over in case you want a single statement, but then if you do { it moves back and then you have to hit <enter> and do } then <up-arrow> then <enter> again. It would be really super duper if VS would FINALLY allow you to simply type a { and then automatically provide the } and add a new line between them tabbed over!
Guess it's little late to comment on this video, nevertheless I will try to add my $.02. Selection of scope in "Call hierarchy" should include 4th element "All open documents", similar to Search window. This makes possible to define "custom scope" of analysis (or search) - developer just keeps open the files he is interested in.
Remove this comment
Remove this thread
close