Visual Studio Code

2018-11-08  本文已影响10人  Dozing

在Visual Studio Code中使用如下的配置来运行python虚拟环境,结合coderunner来运行代码,脚本

{
    "python.pythonPath": "E:\\Flasky_my\\v_env\\Scripts\\python.exe",
    "python.venvPath": "E:\\Flasky_my\\v_env",
    "python.venvFolders": [
    "v_env",
    ".pyenv",
    ".direnv",
    ".env"
    ],
    "code-runner.executorMap": {
        "python":"E:\\Flasky_my\\v_env\\Scripts\\python.exe"
    },
    "code-runner.runInTerminal": true

}

Windows 下的Visual Studio Code终端powershell格式很乱,不对齐


Windows VScode

解决方法一:

打开终端-属性-使用旧版控制台勾上,重启VsCode,问题可以解决

解决方法二:

使用Git base:

# settings.json
"terminal.integrated.shell.windows": "E:\\Git\\bin\\bash.exe"

Windows上的默认终端为powershell

C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
上一篇 下一篇

猜你喜欢

热点阅读