Visual studio code cmd error: Cannot be loaded because running scripts is disabled on this system

后端 未结 11 1497
北荒
北荒 2020-12-02 07:52

Inside of visual studio code, I\'m trying to execute a script.bat from the command line, but I\'m getting the following error:

File C:\\Theses_Repo\\t

11条回答
  •  北海茫月
    2020-12-02 08:25

    For more simplicity, I want to add the vs code settings path in addition to Ricardo's answer. you can get it like this:

    File -> Preferences -> Settings and in the search bar write "automation".

    After that, by looking your operating system enter "edit in settings.json".

    Finally, add the following b/n the braces:

    "terminal.integrated.shellArgs.windows": ["-ExecutionPolicy", "Bypass"]
    

提交回复
热议问题