Partilhar via


Como: Alterar ou adicionar um Editor padrão

You might want to choose which editor you use to work on your files. For example, you can open .txt files in WordPad if you like. Editors and files are associated with each other based on the file's type as indicated by the file's extension. After you change the default editor for a file type, every file of that type opens in the new default editor.

ObservaçãoObservação

If you try to open a file with an extension that is not associated with a specific editor, the file is opened in the text editor.

To change the default editor for an existing file

  1. No arquivo menu Visual Studio, escolha Abrir e selecione arquivo.

  2. In the Open File dialog box, select a file of the type you want to change.

    Por exemplo, se você quiser alterar o editor padrão para arquivos de texto, selecione um arquivo. txt.

  3. Ainda na Abrir arquivo diálogo caixa, clique na seta para baixo ao lado do Abrir botão e, em seguida, selecione Abrir com.

  4. In the Open With dialog box, choose an editor from the Select a program to open list.

    ObservaçãoObservação

    You can add editors to the list; see the next procedure.

  5. Clique o Definir como padrão botão e, em seguida, clique no Abrir o botão para abrir o arquivo.

    Dica

    The current default editor for the target file is followed by (Default) in the Select a program to open pane.

When you open a file for editing, you can add a new editor to the list.

To add an editor to the Open With dialog box

  1. No arquivo menu Visual Studio, escolha Abrir e selecione arquivo.

  2. In the Open File dialog box, select a file of the type you want to change.

  3. Choose the arrow adjacent to the Open button, and then select Open With.

  4. In the Open With dialog box, choose Add.

  5. In the Add Program dialog box, enter the path and name of the executable program (.exe) for the editor you want to add.

    ObservaçãoObservação

    Se você não souber o caminho, você pode clicar a Procurar o botão para localizar o programa.

  6. In the Friendly Name text box, type a unique name for the editor that you want to include in the Open With dialog box.

  7. In the Add Program dialog box, choose OK.

Consulte também

Outros recursos

Open With Dialog Box