Visual Studio Code - How to add multiple paths to python path?

前端 未结 7 703
我在风中等你
我在风中等你 2020-12-04 12:40

I am experimenting with Visual Studio Code and so far, it seems great (light, fast, etc).

I am trying to get one of my Python apps running that uses a virtual enviro

7条回答
  •  执笔经年
    2020-12-04 12:50

    bash escamotage (works with debugger AND autocomplete); need to install code command in PATH (vsc shell command: install...)

    #!/bin/bash
    
    #
    # vscode python setup
    #
    
    function fvscode {
      # you just want one of this:
      export PYTHONPATH=
      # you may want many of these:
      export PYTHONPATH=:$PYTHONPATH
      # launch vscode
      code 
    }
    alias vscode='fvscode'
    

    the launch VSC by typing 'vscode'.

提交回复
热议问题