Use vs2019 development project, move the mouse to the built-in method of the framework, there will be intelligent English prompts, Microsoft has provided us with .NET Core language packages in multiple languages, this article will install Chinese Chinese packages, so that smart prompts become Chinese.
introduction
For someone like me who is not good at English, the Chinese Chinese package will greatly improve my development efficiency. Currently, Microsoft has provided us with language packs for .NET Core in multiple languages.
Smart prompts are actually DLL comments, which are packaged into XML format files in different languages.
Prerequisites
.NET Core 3.0 SDK or later. Visual Studio 2019 version 16.3 or later.
Download and install the localized IntelliSense file
In the official download of Microsoft, open the address we can see various language packs
The hyperlink login is visible.
We download the "Chinese (Simplified)" language package and unzip it to get the dotnet-intellisense-3.1-zh-hans folder.
| SDK type | path | | .NET Core | Microsoft.NETCore.App.Ref | | Windows desktop | Microsoft.WindowsDesktop.App.Ref | | .NET Standard | NETStandard.Library.Ref |
Modify the Visual Studio language
Take the "Microsoft.NETCore.App.Ref" language package as an example.
Before Sinicization, it was as follows:
The smart prompts are still in English.
Chinese translation starts, open the "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.1.0\ref\netcoreapp3.1" folder, and unzip the "/dotnet-intellisense-3.1-zh-hans/Microsoft.NETCore.App.Ref/zh-hans" that you just extracted. Copy the folder into it, and the copy is completed as shown in the figure below:
Restart Visual Studio, move the mouse to the Console.WriteLine method again, the prompt has changed to Chinese, as shown in the figure below:
Tips: There is no Chinese Simplified Chinese package for Asp.Net Core yet.
Resources:
The hyperlink login is visible. |