Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
zouri
V2EX  ›  Linux

VSCode 远程开发时候 vscode 命令有时候会找不到

  •  
  •   zouri · Oct 15, 2024 · 1648 views
    This topic created in 597 days ago, the information mentioned may be changed or developed.

    再 ~/.bashrc 文件添加

    # vs code
    export VS_SERVICES_DIR="${HOME}/.vscode-server/cli/servers/"
    if [ -f "${VS_SERVICES_DIR}/lru.json" ]; then
        vs_version=$(cat ${VS_SERVICES_DIR}/lru.json | awk -F '"' '{print $2}')
        vscode_dir="${VS_SERVICES_DIR}/${vs_version}/server/bin/remote-cli"
        export PATH=${vscode_dir}:${PATH}
    fi
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5189 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 05:54 · PVG 13:54 · LAX 22:54 · JFK 01:54
    ♥ Do have faith in what you're doing.