admin管理员组文章数量:1309187
In Visual Studio Code, I get suggestions when I type in a Razor file. Pressing Spacebar accepts the suggestion. This is often not the word I wanted to type.
Example:
Pressing Spacebar changes "all" to "allow," which is not what I wanted.
At first, I thought these suggestions could be disabled by diabling quick suggestions for this language, aspnetcorerazor
.
So I tried adding this to my settings.json
file:
"[aspnetcorerazor]": {
"editor.quickSuggestions": {
"other": "off",
"comments": "off",
"strings": "off"
}
},
But that had no effect, even after restarting Visual Studio Code.
How can we disable these suggestions for Razor files?
In Visual Studio Code, I get suggestions when I type in a Razor file. Pressing Spacebar accepts the suggestion. This is often not the word I wanted to type.
Example:
Pressing Spacebar changes "all" to "allow," which is not what I wanted.
At first, I thought these suggestions could be disabled by diabling quick suggestions for this language, aspnetcorerazor
.
So I tried adding this to my settings.json
file:
"[aspnetcorerazor]": {
"editor.quickSuggestions": {
"other": "off",
"comments": "off",
"strings": "off"
}
},
But that had no effect, even after restarting Visual Studio Code.
How can we disable these suggestions for Razor files?
Share Improve this question edited Feb 4 at 5:59 Ruikai Feng 11.9k1 gold badge7 silver badges16 bronze badges asked Feb 3 at 17:08 Eric EskildsenEric Eskildsen 4,7692 gold badges50 silver badges59 bronze badges1 Answer
Reset to default 1Try
"[razor]": {
"editor.quickSuggestions": {
"other": "off",
"comments": "off",
"strings": "off"
}
now no suggestions on my side:
On myside,it works even without restarting vs code:
本文标签: cHow can I disable these suggestions in VS Code for ASPNET Razor PagesStack Overflow
版权声明:本文标题:c# - How can I disable these suggestions in VS Code for ASP.NET Razor Pages? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741807816a2398611.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论