Hi all,
I'm developing an open source public domain product called Stored Procedures
Class Generator I plan to publish at Code Project. This product generates
one class per stored procedure in a SQL Server 2000/2005 database. It
includes an item template, a standard file based editor, and a custom tool.
The editor loads stored procedure metadata from the specified database,
allows the developer to modify and specify some data, and saves it in a xml
file with .sps extension (this file is part of the project), then the custom
tool generates the code in vb or cs.
All seem to work properly, but there are some minor details I would like to
fix:
(4) I'd like this product to work on Express editions, but custom Visual
Studio Packages are not allowed on express editions. So I need to put the
editor outside Visual Studio. What I'm going to do is to create a Windows
Application that edits .sps files. But I don't know how to register an
external editor and make it the default one.
Best regards:
Jesús López
VB MVP
Jesús López - 19 Feb 2006 15:49 GMT
Looking at the registry I found how to register an external editor for both
Visual Studio 2005 and Visual Basic Express.
For Visual Basic Express:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\VBExpress\8.0\Default Editors]
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\VBExpress\8.0\Default
Editors\YourExtensionWithoutTheDot]
"Custom"="Your editor friendly name"
"Type"=dword:00000002
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\VBExpress\8.0\Default
Editors\YourExtensionWithoutTheDot\Your editor friendly name]
@="\"Path to the executable file (your external editor)\""
For Visual Studio 2005 you must change VBExpress to VisualStudio.
Regards:
Jesús López
VB MVP