External editor in Visual Studio 2008

2019-03-16 10:53发布

问题:

Is there any way to set up external editor integration for VS2008?

By this I mean when I double-click on a .CPP file in the Solution Explorer, it should open in the external editor, not the internal VS one.

To keep it simple let's say I want it to open the file in Notepad++ (or how about Notepad to make it even simpler).

回答1:

Right click on the type of file you want in the Solution Explorer,

Then choose Open With...

Pick your program, and choose "Set as Default"



回答2:

Right click on any file and choose open with..

Then click on add to browse to the program of you choice for this file type and having added it to the list, select "set as default"

From now on when you double click on this file type it will open in the editor of your choice.



回答3:

(In VS2008)

You can goto: Tools -> Options -> Text Editor -> File Extension. Put a file extension in and choose a program to launch with it