小编Ada*_*her的帖子

无法打开 Visual Studio Code

我已经在装有 Ubuntu 16.04 LTS 的笔记本电脑上安装了 VS Code。我尝试了多种安装方法,结果相同;最近,我在这里遵循了 Cactux 的“新”说明。我试过以两种方式打开应用程序都没有效果。

  • 当我从“应用程序”打开程序时,图标在启动器中显示大约 15 秒然后消失。没有错误弹出。
  • 当我打开一个终端并输入 时code,该命令什么也不做,我会在不到一秒钟的时间内收到一个新提示。

由于我对 Linux 比较陌生,因此我正在努力尝试尝试什么。 which codeyields /usr/bin/code,这是一个 bash 脚本。这是我超越我的深度的地方。

脚本内容

/usr/bin$ cat code
#!/usr/bin/env bash
#
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.

# If root, ensure that --user-data-dir or --file-write is specified
if [ "$(id -u)" = "0" ]; then
    for i in $@ …
Run Code Online (Sandbox Code Playgroud)

bash visual-studio-code

13
推荐指数
2
解决办法
5万
查看次数

标签 统计

bash ×1

visual-studio-code ×1