Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Powershell as terminal in IntelliJ IDEA IDEs like PyCharm, PHPStorm or RubyMine

I have been attempting to run powershell as my terminal on windows in pycharm, so I did the following:

enter image description here

However, when I try this, it says that it cannot execute my scripts, and hence I get the following error: SecurityError and the Fully Qualified Id is : UnAuthorizedAccess.

This arises from the fact that pycharm's terminal cannot execute my Powershell_profile.ps1 profile file.

How can I successfully run Pycharm's terminal with Powershell?

What I have tried so far, is going into my main powershell directory as in %windir%/system32/WindowsPowerShell/1.0/profile.ps1, and then change it to include the following:

Set-ExecutionPolicy Unrestricted 

However, this does not help, and I get the same error when I try to open of pycharm's terminal.

I have also tried to run pycharm as Admin, however this does not solve the problem either, and I get the same aforementioned error.

like image 333
Games Brainiac Avatar asked Jan 06 '14 12:01

Games Brainiac


People also ask

Does IntelliJ support PowerShell?

Provides PowerShell intellisense and script execution support for IntelliJ IDEs.

How do I use terminal in IntelliJ?

We can open the terminal window with ⌥F12 on macOS, or Alt+F12 on Windows and Linux. The terminal supports all the same commands that the operating system supports. and press enter.

Does IntelliJ include PHPStorm?

IntelliJ IDEA Ultimate is a superset of most IntelliJ platform-based IDEs. If the bundled language plugins are enabled, it includes support for all technologies that are available within our more specific IDEs, such as PyCharm, WebStorm, PHPStorm, and so on.


1 Answers

I've replaced cmd.exe with powershell.exe in a simpler way and hope it can help. I'm using webstorm2017 and Win10 os.

1.Find the exact location of powershell.exe.In mine and I believe in most computers the location would be C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe.Copy the whole path into your clipboard.

2.In your IDE open File=>Setting=>Tools=>Terminal, and paste the path into "Shell path" blank.

3.Restart the IDE and everything would be ok.

like image 113
Halt Avatar answered Oct 03 '22 04:10

Halt