Hacker News new | ask | show | jobs
by tekism 3668 days ago
Wow this is amazing! Do you know if you can run powershell in terminal? I just tried to run my usual powershell build cmd ".\build.ps1 Prod" for example but it launches notepad with the code for the powershell script.
3 comments

Hi, I wrote the integrated terminal. The advice mentioned will open 32-bit version of Powershell, for 64-bit you need to use a different path:

"terminal.integrated.shell.windows": "C:\\WINDOWS\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"

C:\WINDOWS\sysnative should be a symlink to C:\Windows\SysWOW64, see https://github.com/Microsoft/vscode/issues/7095#issue-157913... for more info

Yeah, you just need to change your terminal in settings:

"terminal.integrated.shell.windows": "\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"

On my Windows 7 work laptop I just added the following to my settings.json:

    "terminal.external.windowsExec": "Powershell.exe",
    "terminal.integrated.shell.windows": "C:\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"