Integrating Google Javascript Compiler in Visual Studio

יום ראשון, נובמבר 8, 2009

Friday, Google released some of their Javascript tools. Among them the Closure Javascript compiler. Being excited that Google has released Closure (the compiler), I decided to give it a go. So late Saturday night after the party was over and the kids were sleeping, I played a little with the online UI when I saw that the compiler services are exposed through a REST web service. At that point it would be a crime to go to sleep. 2 hours later… In this screenshot you can see some compiler statistics. (Yes, you can use the compiler service as a pretty-printer or...

The C# team engages in the battle – C# vs VB.NET

יום רביעי, אוקטובר 29, 2008

I’m not going to say a word about which is better. Why? Because in the scope of things it doesn’t matter. But you have to wonder if the right hand knows what the left hand is doing inside Microsoft. (One hand being the C# team the other the VB.Net team – you can choose) I got up early this morning to watch the recording of Anders Heijlsberg’s presentation at the PDC on the future of C#. 14 minutes into the recording I had to stop because the kids were up. I’ll watch the rest tonight, but...

CodeRush for free! CodeRush Xpress for Visual Studio announced

יום שלישי, אוקטובר 28, 2008

Fresh from the DevExpress booth at PDC comes an announcement that DevExpress will be providing a significant subset of CodeRush and Refactor! Pro for free. You can see the announcement here and Mark Miller gives a more technical overview of what’s available. You can download it from the DevExpress site now. It’s not all rosy though. The Xpress version is C# only! Go figure? I was very surprised by this since CodeRush and Refactor work with both VB.NET and C# seamlessly. Did they announce the end of VB.Net at PDC?Another limitation is that CodeRush Xpress edition is not supported in the...
6 comments

CodeRush Plugin – Navigate to Implementation Part 3

יום שני, אוקטובר 20, 2008

In this part we’ll look at the Implementors class. As we described in part 1, a the Navigation Provider will call into our plugin twice. Once to give us the chance to make our plugin available to the user and a second time if the user selected one of our menu items. When the Navigation provider raises the event CheckAvailability we need to do two things. Check if this plugin is available in the current context. Alter the menu displayed so our options are available to the user. In step one we will first check if we are positioned...
one comment

CodeRush Plugin – Navigate to Implementation Part 2

יום ראשון, אוקטובר 19, 2008

In the previous post we just defined what we want the plugin to do. Let's start to walk through the process of creating a plugin with CodeRush. There's some plumbing that needs to be done every time you create a plugin and that is not directly related to the functionality of the plugin. For this part I'll just point you to a plugin tutorial by Mark Miller. Since our plugin will handle navigation it seems natural to hook into the Navigation provider system provided by CodeRush. Open the plugin designer The NavigationProvider does not show up in the toolbox by default...

CodeRush Plugin – Navigate to Implementation Part 1

In a post last week I mentioned a shortcoming of CodeRush navigation capabilities. On Friday (we don't work Fridays here) I decided that instead of sitting on my hands and complain I'll try to do something about it. I'll write a plugin for CodeRush that does this. I've written a few CodeRush plugins before, but I have never found the time to make something that I feel I can share with others. Not that the current implementation is a master piece, but it is small simple and works for what I want it to. Because in my opinion it is...
2 comments

Visual Studio productivity tips

יום שלישי, אוקטובר 9, 2007

For some time I have been subscribing to Sara Ford's blog where she shares useful tips for Visual Studio users. One of the tips she shared was using Ctrl+K, Ctrl+C (That is a Ctrl+K followed by a Ctrl+C) to comment out the current selection. Ctrl+K, Ctrl+U will do the reverse and remove the comment. Cool I thought, but not very useful to me since CodeRush lets you comment and uncomment using the ' in VB or the / in C#. But then I was in for a surprise. I do a lot of Xml configuration file editing. Adding and...
no comments

Visual Studio "View Code" soo slow…

יום שישי, יוני 8, 2007

I don't know exactly why, but for some time, the first time I display a code window within Visual Studio there's intense disk activity for about 10 seconds. From that point on opening other source files is a snap.It's late so I'm going to make this a short one. Locating the problem:1) I fired up SysInternals fileMon.2) set it to monitor only the C: drive3) turned off some disk intensive applications (Folding@Home, MSN Desktop search...)4) Created a new project in Visual StudioStared at the fileMon log for about 30 seconds while Visual Studio was writing to the file:C:\Documents and Settings\kim\Local Settings\Application...