【问题标题】:visual studio code touch command not recognized无法识别 visual studio 代码触摸命令
【发布时间】:2023-02-05 15:59:00
【问题描述】:

Visual Studio Code 无法识别 touch index.html 命令。它曾经有效。现在我得到这个错误:

PS C:\Users\kimim_000\mynewprofile> touch index.html touch : 术语“touch”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。检查
名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试。 在行:1 字符:1

  • 触摸 index.html
  •   + CategoryInfo          : ObjectNotFound: (touch:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

【问题讨论】:

    标签: github visual-studio-code


    【解决方案1】:

    我也有同样的问题。我使用“代码”代替“触摸”来创建我的文件。

    【讨论】:

      【解决方案2】:

      你在使用 PowerShell 吗?

      如果你是的话,我认为这个答案很好地解释了它。

      https://stackoverflow.com/a/67665941/15102120

      基本上,touch 不是 PowerShell 或 Windows 命令。如果这是问题的命令是New-ItemGet-Item

      【讨论】:

        猜你喜欢
        • 2022-08-12
        • 2021-07-27
        • 1970-01-01
        • 2019-04-11
        • 1970-01-01
        • 1970-01-01
        • 2019-04-20
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多