From the course: Visual Studio Tips and Techniques for Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Customize the editor for a given file extension

Customize the editor for a given file extension - Visual Studio Tutorial

From the course: Visual Studio Tips and Techniques for Developers

Start my 1-month free trial

Customize the editor for a given file extension

- [Instructor] Visual Studio ships with a lot of specialized editors. When you open a file, you get the default editor which is based on the file extension. For this example, mainwindow.XAML.CS is the file. The extension is .CS, which stands for C-sharp. When I double click on this file it opens it in this C-sharp editor. We can see which editor is affiliated with this extension by right clicking on the file and choosing open with. This shows a list of possible editors and it shows the default editor is the C-sharp editor. We can choose to use a different Visual Studio editor when there is an alternative one available, plus we can choose a different default. To change default, choose the other editor, click on set as default. I'll set it back. We can also configure Visual Studio to use an external tool for the file. There's already one in this list down here. It's Notepad. So when I click on this, it'll launch the…

Contents