Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I open a resx file in Visual Studio XML editor by default?

I want the 'View Code' view by default (xml editor), so that I can use features in R# File Structure window.

like image 531
JoeB Avatar asked Jul 19 '12 19:07

JoeB


People also ask

How do I open a RESX file in Visual Studio?

Open a . resx file in the XML (Text) editor. Press Ctrl+Alt+F or choose ReSharper | Windows | File Structure from the main menu . Alternatively, you can press Ctrl+Shift+A , start typing the command name in the popup, and then choose it there.

How do I read a RESX file?

Create an App_GlobalResources system folder and add a resource file to it e.g. Messages. resx. Create your entries in the resource file e.g. ErrorMsg = This is an error. Then to access that entry: string errormsg = Resources.

What is RESX file in Visual Studio?

resx resource file format consists of XML entries that specify objects and strings inside XML tags. One advantage of a . resx file is that when opened with a text editor (such as Notepad) it can be written to, parsed, and manipulated.


1 Answers

  1. Right Click on Resources File
  2. Choose Open With
  3. Select XML (Text) Editor or XML (Text) Editor with Encoding
  4. On the right side of the dialog, click Set as Default
like image 174
Punit Vora Avatar answered Oct 03 '22 16:10

Punit Vora