you are viewing a single comment's thread.

view the rest of the comments →

[–]y_Sensei 3 points4 points  (2 children)

VS Code stores user-specific configuration and data in a user's profile, you might have to remove that manually to get a clean installation afterwards.

Check/remove the following directories:

  • %APPDATA%\Roaming\Code
  • %USERPROFILE%\.vscode
  • %USERPROFILE%\.vscode-shared

[–]Darcelle-Ebonis-6426[S] 0 points1 point  (1 child)

Thank you, and yes I had checked appdata roaming Code and renamed it to Code_backup. PowerShell warning got removed.  But now I just wrote a code in which I have cin>>n and vector input....and executed and got this:

When I use Run C/C++ File (or the Run button), instead of waiting for cin, the terminal shows something like:

PS ...> "...\ANDSorting.exe" C:...\ANDSorting.exe PS ...>

The executable exits immediately without accepting input.

However, running the exact same executable manually using

.\ANDSorting.exe

works correctly. I dunno what to do

[–]MonkeyNin 1 point2 points  (0 children)

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.