Showing posts with label PhpStorm. Show all posts
Showing posts with label PhpStorm. Show all posts

Sunday, July 2, 2017

PHPStorm: Open Project Using Command Line Using VBScript | Open Directory Using Command Line Using VBScript

PhpStorm helps opening a project using command line. You can open specific file with specific line. Below is a code snippet (Written in VBScript) to open a project directory using command line as well as VBScript.

Set WshShell = CreateObject("WScript.Shell" )

WshShell.Run """C:\..\bin\PhpStorm.exe"" ""C:\xamp\project" "", 1

And in MAC you can use below command:
/Applications/../phpstorm ~/PhpS..jects/unt..5


You also can open a file of the same project using below command:

PhpStorm.exe C:\project_dir --line 3 C:\project_dir\numbers.js

Friday, April 7, 2017

Git Bash Inside PhpStorm

It would be very helpful if we can use Git Bash inside PhpStorm itself.
The fact is, though, that it's a terminal client and that's how PhpStorm thinks of it. To implement it, you have to go to:

>> File -> Settings -> Tools -> Terminal

Once you're there, here are the steps necessary to enable Git Bash in the Terminal dialogue. 
Now you can browse git.sh file from your git installation location. 
That would be like below path:
C:\Program Files\Git\bin\sh.exe and it may differ in your machine

And then need to bound the path by double quotation like:
"C:\Program Files\Git\bin\sh.exe" 

And add the following line after that "-login -i"

And the final output be like:
"C:\Program Files\Git\bin\sh.exe" -login -i

Your set-up is completed, now press Alt+F12 to see git window inside PhpStorm.

And your are done.