I have the latest version of VSC installed on a Windows 10 machine. If I run VSC regularly, so not as an admin, then if I try to open a terminal I get a 740 error. If I start VSC with Administrator privileges everything works fine.
What could be causing this? I would prefer if I didn't have to run VSC with Admin privileges.
P.S.
- I'm using VSC its integrated Terminal.
- If I switch to Command Prompt as external Terminal, the problem is gone. But I would prefer to continue to use the integrated Terminal.
- There are some other Slack topics that point to ensure not running VSC in compatibility mode, which is indeed disabled on my end.
CodePudding user response:
I found out the cause. Git Bash was configured as the Integrated Terminal of VSC. Its run file C:\Program Files\Git\bin\bash.exe was configured in Windows to "Run as Administrator". As a result, I also had to start VSC "as administrator" to open a Terminal. After unchecking the box "Run as Administrator" for Git Bash, I no longer need to run VSC as administrator to be able to open the Terminal.