简体   繁体   English

无法在 VS Code 中打开终端

[英]Cannot open terminal in VS Code

I need to open a terminal in Visual Studio.我需要在 Visual Studio 中打开一个终端。 I've tried我试过了

  • Re-installing VS Code重新安装 VS 代码
  • The usual Windows shut down / restart平时 Windows 关机/重启
  • Run vs code as admin以管理员身份运行 vs code
  • Change settings.json file更改设置.json 文件

I didn't change anything but something is broken in my code Editor help needed:)我没有改变任何东西,但我的代码编辑器需要帮助:)

press ctrl + ` , it might work, and if it doesn't try reinstalling the vs-code again and then try the above key again.ctrl + ` ,它可能会起作用,如果它没有尝试再次重新安装 vs-code 然后再次尝试上面的键。 Let me know if it helped or not让我知道它是否有帮助

For Windows users:对于Windows用户:

  1. Open PowerShell terminal (windows button + r -> cmd)打开 PowerShell 终端(Windows 按钮 + r -> cmd)
  2. Right click on the title bar右键单击标题栏
  3. Open properties打开属性
  4. Check the "Use legacy console" checkbox选中“使用旧版控制台”复选框

For Linux users:对于 Linux 用户:

  1. Open VS Code打开 VS 代码
  2. Ctrl +, Ctrl +,
  3. Search env and find Terminal > Integrated> Env: Linux搜索环境并找到终端>集成>环境:Linux
  4. Add this "terminal.integrated.inheritEnv": true to the object body将此 "terminal.integrated.inheritEnv": true 添加到 object 主体

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

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