iorewfabulous.blogg.se

Phpstorm 2016.2
Phpstorm 2016.2







phpstorm 2016.2
  1. #Phpstorm 2016.2 full
  2. #Phpstorm 2016.2 trial
  3. #Phpstorm 2016.2 windows

When you click on it, you should see a window with the Bash prompt, followed by a cursor. Quotation marks are not necessary here, since there are no command-line options.Īt the bottom of the PhpStorm screen (bottom left on my version) you should see a "Terminal" button. Or this if you're using the 64-bit version of Git:Īs with setting up the shell, you can also use the browse button. Go to:įile -> Settings -> Version Control -> Git If you haven't already, you also need to set the path to Git. Use the "Test" button to make sure you have the path correct. You may have to restart PhpStorm for this all to take effect. When you're done, click on "Apply" and then on "OK". I left all the checkboxes checked and it seems to work fine. The -login tells Bash to run it's configuration files (more on that in the next article), and the -i tells Bash that you want interactive mode.Īs an alternative, you can click on the browse icon and navigate to the sh.exe file, wherever it is, but be sure to add the command-line options after the path. You can add -v if you like verbose output from Bash. Note that login has two dashes, but i has only one. They're necessary for PhpStorm to distinguish between the file and the options. "C:\Program Files\Git\bin\sh.exe" -login -iĭon't forget the quotation marks. If you are using the 64-bit version of Git, the path is different: "C:\Program Files (x86)\Git\bin\sh.exe" -login -i Put the following line in the Shell Path field (adjust as necessary for your platform): Once you're there, here are the steps necessary to enable Git Bash in the Terminal dialog. The fact is, though, that it's a terminal client and that's how PhpStorm thinks of it.

#Phpstorm 2016.2 windows

I kept playing with various PhpStorm settings for Command Line Tools, since that's what I think of Git Bash as (it looks and acts like the Windows cmd prompt). A similar process should work with cygwin or other shells. I use the shell installed with Git (installed from here). This assumes that you have a Git client and the Git Bash shell. These steps are for PhpStorm 2016.2 with XAMPP on localhost under Windows 10, so you'll have to modify them somewhat if you're on another platform.

#Phpstorm 2016.2 trial

It took me most of an evening and a lot of trial and error to make this work and Google wasn't much help, so I thought I'd document it here for others. You can copy your commit message and paste it into your changelog, for example (or vice versa).

#Phpstorm 2016.2 full

On Windows, another huge plus is that you have full copy and paste capability both ways (something I didn't get in the Bash window launched from the Windows desktop). Of course I already had a Quick Start icon for the Bash shell at the bottom of my screen, so I could launch it any time, but it's much more convenient to issue the commands in PhpStorm where the files you've been working on are visible. The command line tool also allows you to quickly and safely perform the more complex operations necessary to recover from the disasters that will eventually strike when you're working in the wee hours of the morning.

phpstorm 2016.2

I trust it more than I do any IDE-based Git tool. I'm used to using the Git Bash command line tool. Of course you can also use it as a terminal. Likewise, if you use both and are used to using the Git features inside PhpStorm, this won't be much use to you, although you can do other things in Git Bash like using SSH connections, copying files, running Grep, or issuing Composer or Perl commands. If you don't use Git and Jetbrains' fabulous editor, PhpStorm, this article probably won't interest you.









Phpstorm 2016.2