Tag: visual studio code

如何以root身份运行Visual Studio代码

我最近安装了Visual Studio Code编辑器。 我下载了32位.deb软件包。 安装并正常运行,但是当我尝试在项目文件夹中保存文件时,它会返回拒绝权限。 所以,我重新运行代码 sudo code . 然后它回来了 It is recommended to start vscode as a normal user. To run as root, you must specify an alternate user data directory with the –user-data-dir argument. 我查找了如何使用–user-data-dir参数指定备用用户数据目录,但我找不到多少。 那么,如何在Ubuntu 16.04中以root身份运行Visual Studio Code? 编辑:我更喜欢一个避免更改目录权限的解决方案。 edit2:项目目录: /var/www/project (我正在使用Apache与vhost)

将Visual Studio代码安装为快照时出错

我尝试使用以下命令在Ubuntu 16.04上安装MS Visual Studio Code作为快照: sudo snap install vscode 但我有以下错误: error: This revision of snap “vscode” was published using classic confinement and thus may perform arbitrary system changes outside of the security sandbox that snaps are usually confined to, which put your system at risk. If you understand and want to proceed repeat the command […]

是否存在vscode的快照?

媒体对于Visual Studio Code的快照包很热闹,它是多么美妙(显然有一个插件可以治愈痛风;-)。 所以我想我会给它一个旋转。 我尽职尽责地打字: $ sudo snap install –classic vscode error: cannot install “vscode”: snap not found 那些文章太早了? vscode还没有落地吗?

如何安装Visual Studio代码?

我刚刚从微软网站下载了VSCode-linux-x64 。 这是一个62 MB的zip文件。 如何在我的Ubuntu系统上安装它?