Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the language of C# error hints?

Since omnisharp 1.16 update (don't know if it is the point) I have error hints in my system's language (Russian). But my VSCode locale is English. Where I can set error hints' language back to english? I don't have any localization language packs for .Net in the system.

Errors I am talking about picture

like image 938
luvjungle Avatar asked Oct 09 '18 09:10

luvjungle


People also ask

Can C language be replaced?

Some programmers consider popular languages like Rust, Go, D, and Carbon as C/C++ replacements. Meanwhile, some programmers consider using those languages as C/C++ alternatives that might replace C/C++ in the future. These modern languages are made for specific purposes and requirements — not to replace C/C++.

Which language is correct for C language?

C is a procedural language. It is written in a number of steps using statements and functions. Logic is clearly depicted in the program. Procedural language is aslo called Imperative Language.


1 Answers

This is the workaround to set error hint back to English. As described here: https://github.com/OmniSharp/omnisharp-vscode/issues/2513

Open your "OmniSharp" log and find the path to OmniSharp from the beginning of the log, eg:

OmniSharp server started.

Path: C:\Users\rchande.vscode-insiders\extensions\ms-vscode.csharp-1.16.1.omnisharp\1.32.5\OmniSharp.exe

Navigate to the directory eg

C:\Users\rchande.vscode-insiders\extensions\ms-vscode.csharp-1.16.1.omnisharp\1.32.5,

and enter the subfolder that corresponds to your system language. In my case, the folder would be "ru" because the system language is Russian. Remove all the DLLs whose name starts with Microsoft.CodeAnalysis. Or rename the folder.

like image 114
luvjungle Avatar answered Sep 28 '22 23:09

luvjungle