无法配置 Visual Studio 17.5 和 17.6.0 预览版 1.0 中的拼写检查器。

huangapple go评论60阅读模式
英文:

Cannot configure the spellchecker in Visual Studio 17.5 and 17.6.0 Preview 1.0

问题

我的Windows本地化为德语,但我使用Visual Studio的英语语言包,并且代码和文档都是首先以英语编写的(即,仅在没有很好的英语翻译时才使用德语领域术语)。

拼写检查器不接受英语单词并建议德语单词作为更正;当然,它不会对恰好在两种语言中都有效的单词提出抱怨。

这里 告诉我,我需要在我的.editorconfig中添加spelling_languages = en-us才能得到我想要的效果,但出于某种原因,它不起作用。我为此添加了一个.editorconfig

.editorconfig与解决方案(.sln)文件和C#项目(.csproj)文件位于相同的文件夹中。它的内容是上面的分配。

我漏掉了什么?

英文:

My Windows is localized German, but I use the English language pack for Visual Studio and code and documentation is written English first (i.e. we only use German for domain terms without a good English translation).

The spellchecker does not accept English words and suggests German words as corrections; and, of course, does not complain about words that happen to be valid in both languages.

Here it tells me, I need to put spelling_languages = en-us in my .editorconfig to get what I want, but for some reason, it does not work. I added an .editorconfig for this purpose.

The .editorconfig is in the same folder as the solution (.sln) file and the C# project (.csproj) file. Its content is the assignment above.

What am I missing?

答案1

得分: 1

你的问题很可能与语言选择无关。我的机器上一切都是英文,但我也无法让它工作。这是因为Visual Studio的拼写检查功能根本不起作用。

在此页面上: https://developercommunity.visualstudio.com/t/VS2022-1752-Spell-Checker-Exclusion-Di/10328416,你可以阅读有关这个问题以及尝试弄清楚他们承认并修复它花了多长时间。

截止到我撰写这些文字的时候,似乎在版本17.7.1上已经可以正常工作。因此,你的解决方案应该是升级到Visual Studio的最新版本(但要祈祷他们没有破坏任何重要功能),然后再试一次。

英文:

Your problem most likely has nothing to do with the language selection. Everything on my machine is English, and I can't get it to work, either. This is happening because the spell-checking feature of Visual Studio just does not work.

<sub>&lt;rant>The spell-checking feature seems to be especially badly implemented, even compared to the average quality of features in visual studio, which is overall quite low. This one is abysmally low. As in: not working. A complete waste of time for tens of thousands of programmers all over the world. You might think you are safe from awful user experiences like this by steering clear of any preview versions of visual studio, but even on regular releases Microsoft will push to you features which have been implemented in worse-than-preview quality. This whole product known as visual studio is, nowadays, barely of preview quality. &lt;/rant></sub>

On this page: https://developercommunity.visualstudio.com/t/VS2022-1752-Spell-Checker-Exclusion-Di/10328416 you can read about this problem and try and figure out how long it has taken to acknowledge it and to fix it.

It seems to work as of version 17.7.1, which, at the moment I am writing these lines, is just 2 days old. So, your solution should be to upgrade to the latest version of visual studio, (keeping your fingers crossed that they have not broken anything important,) and try again.

huangapple
  • 本文由 发表于 2023年3月9日 18:13:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/75683165.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定