skip to Main Content

Even though black works in my terminal, I have to provide the absolute path to it in VS Code settings. This is probably because it’s installed under ~/.local/bin/ which is not part of VS Code’s PATH.

Where is this PATH set and how can I modify it?

2

Answers


  1. not sure if this is exactly what your after but, search env in windows search bar, select edit the system environment variables, select environment variables down the bottom, go to path, this will show you what is in your PATH, you can add or remove things here

    Login or Signup to reply.
  2. You can set it in your settings.json file:

    "terminal.integrated.env.linux": {
        "PATH": "~/.local/bin:$PATH",
    },
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search