New Item Dialog in Alpha order

by Jason Haley 10. December 2005 16:49

Check this out:

I figured the last 3 out.  One was just like the others, the other 2 were special cases.... before I tell you what I did, i would like to mention that I have not tested its effects extensively so if you do it make sure you back all the files you edit up first ...

The majority of the items listed in the New Items dialog are stored in the following directory: “C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates\CSharp\1033”

In that directory are a bunch of zip files.  In these zip files are .vstemplate files.  If you open that file up you will see it is an Xml file.  The element that determines the order of the item is the SortOrder element (as I'm sure you could guess).  The orders that I changed my the SortOrders too are listed below:

  Original New
About Box 330 10
Application Configuration File 290 20
Assembly Information File 280 30
Bitmap File 190 40
Class 10 50
Class Diagram 350 60
Code File 30 70
Component Class 100 80
Cursor File 200 90
Custom Control 60 100
Cyrystal Report 205 120
DataSet 120 130
Debugger Visualizer 340 140
HTML Page 160 150
Icon File 210 160
Inherited Form 80 170
Inherited User Control 70 180
Installer Class 230 190
Interface 20 200
JScript File 250 201
MDI Parent 320 205
Report 201 210
Resource File 300 220
Settings File 310 230
SQL Database 110 240
Style Sheet 170 250
Text File 180 260
User Control 50 270
VBScript File 260 280
Web Custom Control 90 290
Windows Form 40 300
Windows Script Host 270 310
Windows Service 220 320
XML File 130 330
XML Schema 140 340
XSLT File 150 350

The Inherited Form and the Inherited User Control orders are stored in the following file: “C:\Program Files\Microsoft Visual Studio 8\VC#\CSharpProjectItems\CSharpItems.vsdir”.

If you open it you will see where the 70 and 80 values are, you just need to change them with what is in the table above. 

In order to get your cache.bin file recreated you will need to run “devenv.exe /setup“.

That is it!

Since there are many more template items I still need to evaluate the order of other items that show up in other dialogs... I'll keep you posted.

UPDATE: Crystal Report is out of order in the above listing.  I am working on a comprehensive listing of all the file names and what they correspond to in the ItemTemplates directory and will post in another entry when it is all completed and tested some.

UPDATE: See the final order for non-web projects in my post at: http://jasonhaley.com/blog/archive/2005/12/11/129208.aspx

Comments (0) | Post RSSRSS comment feed |

Categories:
Tags:

Comments are closed