Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change language of designer files in Visual Studio

Does anybody know how to change the language of the (automatically generated) designer files in Visual Studio without changing the language of the UI?

Background: the members of my team use german and english Visual Studios. The problem is (svn-) merging the designer files with comments in two different languages. Whenever a member changes a web form, the designer file is re-generated and the comments are changed to the member's language.

like image 926
Tillito Avatar asked Feb 19 '10 21:02

Tillito


People also ask

How do I change the language on Visual Studio?

You can change the menu language in the Visual Studio options. 1. Select the Options command in the Tools menu and Environment > International Settings in the options dialog which then opens. The Language area displays the languages (in this case German, English).

How does Visual Studio choose language for code?

Press Ctrl+Shift+P to bring up the Command Palette then start typing "display" to filter and display the Configure Display Language command. Press Enter and a list of installed languages by locale is displayed, with the current locale highlighted.

Can you use any language in Visual Studio?

Visual Studio offers powerful HTML, CSS, JavaScript, and JSON editors. Tap into the power of LESS, and Sass, use PHP, Python, or C# with ASP.NET. All the popular languages are supported and you can move between languages and project types with ease.


1 Answers

I don't know a straightforward way to do this, but in the following folder (this is for Visual Studio 2010) you'll find a lot of .zip files:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Web\1033

For example WebForm.zip contains the following files:

  • Default.aspx
  • Default.aspx.cs
  • Default.aspx.designer.cs (this is your bad guy)
  • WebForm.vstemplate

These are your Visual Studio template files. You could change them manually to be the same on all developer workstations. Or in your case, you might just want to copy and override the entire folder from an English Visual Studio installation.

like image 56
Martin Buberl Avatar answered Oct 09 '22 16:10

Martin Buberl