How to use VS Code Integrated Terminal to programmatically run commands

前端 未结 1 1810
旧时难觅i
旧时难觅i 2021-01-21 00:02

When opening a project using code . I want the integrated terminal to run a file or script. https://code.visualstudio.com/docs/editor/integrated-terminal talks abou

1条回答
  •  失恋的感觉
    2021-01-21 00:21

    Assumed that you want to customize the colors of the integrated terminal in VSCode, just open your settings.json and add the following entries to overwrite the colors you want to modify:

    "workbench.colorCustomizations": {
        "terminal.ansiBlack": "#50ff00",   //this overwrites black colors with green
        "terminal.ansiBlue": "#ff0000",    //this overwrites blue colors with red
        ...
    }
    

    So, for example if you want to change the black colors into another one (i.e. green), you'll have to asign "#50ff00" to "terminal.ansiBlack". As you see in the screenshot below, there are a lot more colors you can adjust.

    Here's how it should look like:

    0 讨论(0)
提交回复
热议问题