r/PowerShell • • Jul 11 '26

Question Please Help (VS Code+ Powershell)

Background : I have a CP setup (VS Code+ MINGW)

Recently I tried to Code python in VS Code. For this I connected VS Code to Anaconda Python Interpreter. After setting up the environment later in the day when I switched back to C++ and CP, my PowerShell started causing problems :

  1. profile.ps1 cannot be loaded because running scripts are disabled
  2. conda activation problems

To work with this is switched to Command Prompt

After setting up Python in VS Code I got the following errors:

PowerShell profile warning,Conda activation issues Switched integrated terminal to Command Prompt,Run button behaved differently,Debug Anyway,Abort,Show Errors,Pre-launch task failed,Exit code -1.

I tried to resolve as far as I could but one problem pops up after another. I have Reinstalled VS Code clean tried everything. Kindly help me I just want my PowerShell terminal back.

EDIT: Should I just uninstall everything clean and reinstall everything MINGW, VS CODE etc?? Will that fix this?? Cause I am tired of debugging since last 2 days. 😭😭

EDIT2: I have completely separated my CP ans Python setup to Jupyter Notebook and Anaconda as best as I could. it's working fine and beautiful. But I just can't seem to retrieve my CP (MINGW+ VSCODE) setup

8 Upvotes

18 comments sorted by

View all comments

Show parent comment

3

u/MonkeyNin Jul 11 '26

The official docs are better guides than AI will give, because it'll leave some config out.

I recommend these pages, they will get you setup for c++ and python.

When I use Run C/C++ File (or the Run button) Executing simple print program of cout<<" HELLO WORLD"....it doesn't even show in the output termina

If you hit run, it depends on what your run command it set to. The links above give you ones for c++ and python.

If you show the exact error message it'd be easier to tell which of a few things could be happening.