Udostępnij za pośrednictwem


Open With Dialog Box

You can open a document in one or more editors by selecting Open With on the View menu or by right-clicking a document in the Solution Explorer and selecting Open With on the context menu.

Caution   Before opening a project or component in Visual Studio, determine the trustworthiness of its code. The act of opening the project or component in a Visual Studio designer will cause devenv.exe to execute its code in a trusted process on your local machine.

  • Choose the program you want to use to open this file
    Lists the editors available in Visual Studio for the selected type of file. Choose the editor with which to open the document from the list displayed, or choose Add to include a new editor in the list.

    Note

    If necessary, you can also specify a language-encoding scheme to apply when opening the selected file. To do so, select a program title in the list that includes "with Encoding" and click OK to display the Encoding Dialog Box.

  • Add
    Choose this button to add a program to the list under Select a program to open. You can either type the file path to the program in the Program Name field, or browse to the program's location by selecting the Browse button. In the Friendly Name field, enter a program name to display in the list.

  • Remove
    To remove a program, select the program and select Remove.

  • Set as Default
    To specify a default editor (and language encoding options, if applicable) for the type of file selected, choose a program from the list, and then click Set as Default. The next time you open this type of file in Visual Studio, the document will open in the new default editor.

    Note

    In the list of programs, the name of the default editor for the type of file selected is followed by "(Default)."

See Also

Tasks

How to: Change or Add a Default Editor

How to: Manage Files with Encoding

Reference

Encoding Dialog Box

Other Resources

Files, User Interface Elements