c# - 意外的名称参数:用户/ VSCODE
问题描述
我只是想用 C# 编程大声笑。为什么 Visual Studio Code 给我带来这么多麻烦?当我搜索这个错误时,它把我带到了这篇文章
当我尝试使用以下内容更改 json.settings
{
"[jsonc]": {
"code-runner.executorMap": { "csharp": "scriptcs -script" },
"editor.quickSuggestions": {
"strings": true
},
"editor.suggest.insertMode": "replace"
}
}
但后来我得到这个错误:这个设置不支持每种语言的配置。
请帮帮我,这变得非常令人沮丧。我已经多次卸载并重新安装了 VS Code。
修订:
这是代码:
using System;
namespace HelloCS
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, C#!");
}
}
}
在控制台中运行的内容:
[Running] scriptcs -script "/Users.....
Copying directory 'bin' to 'scriptcs_bin'...
[Done] exited with code=0 in 2.174 seconds
所以什么都没有打印出来。
解决方案
推荐阅读
- azure-ad-graph-api - Microsoft Teams graph api(获取频道)不会以用户默认语言返回数据,它总是以英语返回数据?
- python - 从代码运行时静音类自动调试模式
- javascript - 如何在 ES6 中创建 for...of 实例?
- c++ - Cocos2d-x v4.0 在带有 Xcode 12、Xcode 12.1、Xcode 12.2 的 iPhone 模拟器中崩溃
- mysql - 如何在 VB.Net 中分别检查是否有 2 个或更多查询正在执行
- ios - 我在 ios webview 应用程序中使用 iframe 加载网站,但窗口已打开
- css - 删除手机的完美滚动条
- java - 使用 Java 从服务器主机存储和检索数据
- assembly - 为什么在摩托罗拉 68k 中,对于非常大的循环计数,dbra 如此之快?
- javascript - 如何删除数组中的重复元素?