简体   繁体   English

我在 Virtualbox 上的 Ubuntu16 中看不到 vscode 的菜单

[英]I can't see the menu of vscode in Ubuntu16 on Virtualbox

I download the deb file --vscode Version 1.10 , and double it to install in Ubuntu16 Virtualbox5.1, and when i lanch vscode , I can't use it and no menu just black screen我下载了 deb 文件 --vscode Version 1.10 ,并将其加倍以安装在 Ubuntu16 Virtualbox5.1 中,当我启动 vscode 时,我无法使用它并且没有菜单只是黑屏在此处输入图片说明

Not sure if this will necessarily fix your specific problem but I've seen strange UI/graphical glitches arise from having 3D acceleration enabled in VirtualBox.不确定这是否一定能解决您的特定问题,但我看到在 VirtualBox 中启用 3D 加速会出现奇怪的 UI/图形故障。 Sometimes switching that off and sticking with 2D resolves the issue.有时关闭它并坚持使用 2D 可以解决问题。 Might be worth a try to see if it makes a difference.可能值得一试,看看它是否有所作为。

A workaround exists.存在解决方法。 It is possible to run the vscode with 3D option enabled if the app is launched with gpu disabled switch like -如果应用程序是在禁用 gpu 的开关的情况下启动的,则可以在启用 3D 选项的情况下运行 vscode -

code --disable-gpu -a

This has worked in Ubuntu 20 LTS and Linux Mint VMs.这适用于 Ubuntu 20 LTS 和 Linux Mint VM。 This is a well-known bug in Linux VMs when run anything based on Electron.当运行基于 Electron 的任何东西时,这是 Linux VM 中的一个众所周知的错误。 Haven't been resolved as per to date.至今未解决。

See here for more details of this bug.有关此错误的更多详细信息,请参见此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM