Click here to Skip to main content
12,887,548 members (28,106 online)
Click here to Skip to main content
Add your own
alternative version


1 bookmarked
Posted 8 Aug 2010

How To Change Visual Studio Default Editor

, 8 Aug 2010 Ms-PL
Rate this:
Please Sign up or sign in to vote.
About changing the Visual Studio Default Editor

Yes I know this sounds strange, but sometimes it can be very useful. For example, let's say we are .NET developers, but really addicted to NotePad++, and each time I click on File.CS file, I want Notepad++ to open it…

There are two ways to do it.

The Ugly Way – Registry

Under HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0, find the “Default Editors” key (create if it doesn't exist).

Create another Key with the name of the File extension (Example :cs) you want to allocate to a custom editor, inside that key create:

  1. String Key called “Custom” with the name of the Custom Editor (You can choose...)
  2. DWORD called “Type” with value of 2 (Default)


Below the File Extension Key, create another key with the custom editor name and add String Key with the path to the Custom Editor.


You can use the below script to easily create a massive amount of custom editors for different extensions.

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Default Editors]
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Default Editors\cs]
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Default Editors\cs\Notepad++]
@="\"C:\\Program Files (x86)\\Notepad++\\notepad++.exe\""gb

The Normal Way





This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


About the Author

Shai Raiten
Architect Sela
Israel Israel
Shai Raiten is VS ALM MVP, currently working for Sela Group as a ALM senior consultant and trainer specializes in Microsoft technologies especially Team System and .NET technology. He is currently consulting in various enterprises in Israel, planning and analysis Load and performance problems using Team System, building Team System customizations and adjusts ALM processes for enterprises. Shai is known as one of the top Team System experts in Israel. He conducts lectures and workshops for developers\QA and enterprises who want to specialize in Team System.

My Blog:

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170424.1 | Last Updated 8 Aug 2010
Article Copyright 2010 by Shai Raiten
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid