次の方法で共有


Getting Expression Blend May Preview to launch Visual Studio when you click on a JS file..

When working on Silverlight 1.0 projects.. it kind of annoyed me that  Blend launches notepad to edit my JS file...    I tried going into Windows and tell it to always "open" JS files with Visual Studio...   (via OpenWith in the shell ) ... but Blend kept launching notepad..  why??

The shell associates the "open" command with VS .. that was working fine.. but blend used the "Edit" command instead of "open" ...  So, I had to configure Windows to "edit"  .JS files with Visual Studio by editing the registry  entry at
HKEY_CLASSES_ROOT\JSFile\Shell\Edit\Command\(Default), the command is set to Notepad and I had to edit the registry entry and change it to point to devenv.exe:
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe [for a default location VS 2005 install]
or C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe [for a default location VS 2008 "Orcas" installed" ] ...

 Now, when I double click on a JS file in Blend May Preview, it launches VS ...