首页 > 解决方案 > 意外的名称参数:用户/ VSCODE

问题描述

我只是想用 C# 编程大声笑。为什么 Visual Studio Code 给我带来这么多麻烦?当我搜索这个错误时,它把我带到了这篇文章

ScriptCS 0.17.01 错误意外的命名参数

当我尝试使用以下内容更改 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

所以什么都没有打印出来。

标签: c#visual-studio-code

解决方案


推荐阅读