当我尝试右键单击 -> 在任何 docker 盒子上附加 shell 时,终端窗口将打开并输出以下内容:
 *  Executing task: docker exec -it <container_id> bash 
zsh:1: command not found: docker
 *  The terminal process "/bin/zsh '-c', 'docker exec -it <container_id> bash'" failed to launch (exit code: 127). 
 *  Terminal will be reused by tasks, press any key to close it. 
Run Code Online (Sandbox Code Playgroud)
当我跑步时docker exec -it <container_id> bash手动运行时,它有效。“附加外壳”下拉选项不起作用。为什么?
我尝试将默认终端更改为 bash,但没有成功。我使用的是配备 M1 芯片的 Mac Monterey 12.1。经过一番挖掘,我发现一个线程提到这可能是 Mac 的问题,但该线程使用的是不同的操作系统版本。
当我输入:
$some = new Some();
$一些->
我首先看到基函数、全局变量等形式的垃圾,但不是类的方法或属性。
只有当我输入更多符号时我才会看到这一点,但这非常不方便。
我已经安装了“php intelephense”、“php intellisense”和“phpfmt”意图,但这没有帮助。
看起来如何:

我尝试通过 Microsoft 的远程 SSH 扩展将 VSCode 连接到树莓派 pi4,但每次都会收到 ECONNREFUSED 错误。错误日志:
[14:49:20.954] Starting forwarding server. localPort 58139 -> socksPort 58137 -> remotePort 44131
[14:49:20.954] Forwarding server listening on 58139
[14:49:20.954] Waiting for ssh tunnel to be ready
[14:49:20.955] [Forwarding server 58139] Got connection 0
[14:49:20.956] Tunneled 44131 to local port 58139
[14:49:20.957] Resolved "ssh-remote+192.168.42.1" to "127.0.0.1:58139"
[14:49:20.958] Failed to set up socket for dynamic port forward to remote port 44131: connect ECONNREFUSED 127.0.0.1:58137. Is the remote port correct?
[14:49:20.965] ------
[14:49:20.980] …Run Code Online (Sandbox Code Playgroud) 我在 VS code 中使用 Palenight 主题,我想修改它。根据缩进,屏幕上会出现一条垂直引导线,我希望我选择的缩进的垂直引导线更改为红色。仅当我选择缩进时。我需要更改 Palenight.json 文件,所以请让我知道要修改哪一部分。
由于某种原因async,await关键字没有突出显示。“Python”和“Python for VSCode”已安装并全局启用。我什至尝试安装“MagicPython”,但没有什么区别
Linter 成功检测到诸如“await allowed only with async function”之类的错误(检查下图)
安装代码运行程序后,如何更改 Visual Studio Code 中使用的快捷方式。当前快捷方式Ctrl+Alt+N。我想将其更改为类似F5或Switch + Enter或任何其他更简单的东西。
这是运行代码的方法:
我怎样才能更改该快捷方式?
我尝试使用文档中提供的示例扩展(yo代码)创建 VS Code 扩展。我在创建它时选择了“typescript”作为扩展类型。当我尝试运行扩展时,收到一条错误消息。
Command 'Hello World' resulted in an error (command 'vscode-err-reproduce.helloWorld' not found)
Run Code Online (Sandbox Code Playgroud)
Activating extension 'undefined_publisher.vscode-err-reproduce' failed: Cannot find module
 '/oct/vscode-extn-ts-error/vscode-err-reproduce/out/extension.js' Require stack: - /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js - /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap-amd.js - /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap-fork.js.
Run Code Online (Sandbox Code Playgroud)
tsconfig.json
{
    "compilerOptions": {
        "module": "commonjs",
        "target": "ES2020",
        "outDir": "out",
        "lib": [
            "ES2020"
        ],
        "sourceMap": true,
        "rootDir": "src",
        "strict": true   /* enable all strict type-checking options */
        /* Additional Checks */
        // "noImplicitReturns": true, /* Report error when not all code paths …Run Code Online (Sandbox Code Playgroud) lambda我希望 vscode像在我的编辑器中一样呈现\xce\xbb。我不希望它用符号替换单词,因为这只会破坏我的代码,因为 Python 不会将 \xce\xbb 解释为关键字。它需要纯粹是渲染更改,实际代码仍然是lambda.
有没有任何扩展可以做到这一点?在 VSCode 环境中可以做到这一点吗?
\n