Edit file from Sourcetree in PhpStorm - phpstorm

In Sourcetree you can right click a file (from current commit / branch) to edit, it then opens a window where a script target can be entered. What to fill in there so it opens the PhpStorm editor?
I work with a Mac

Ah.. with the finder click on a file, show info, open with, change all.
Then open in Sourcetree will use that application.

Related

Open file on macvim from Iterm2

I always use Command + click to open file from iterm2.
However, it always open a new window instead a new tab of the existing windows.
What configuration do I need to do?
I realized that the configuration need to be done in macvim.
1) Click on macvim > Preferences
2) Go to the General tab
3) In Open files from applications:, choose in the current window

PhpStorm keystroke for navigate between Version Control panel tabs (Local Changes, Log, Console, Shelf)

How to navigate between Version Control panel tabs (Local Changes, Log, Console, Shelf) in PhpStorm?
Show Local Changes
Show VCS Log
Are two commands that you can assign a shortcut to jump to the relevant VCS tool window tab. I am not sure if there is a command for the "Console" tab unfortunately.
But if you're in the tool window already (Cmd+9orAlt+9) you can use Ctrl-Left/Right(Mac), Alt+Left/Right(Windows) to cycle tabs.

How do I tell PhpStorm to stop open a file with an external editor?

For some reasons, in my current PHP Project in PhpStorm, when I click on one of my file in my project explorer panel, PhpStorm opens it in an external editor. I have others files with the same extension that opens correctly in PhpStorm.
How can I tell PhpStorm to stop doing that ?
Settings/Preferences | Editor | File Types
Find Files Opened in Associated Application entry in the top list
Remove unwanted entry that affects that file from the bottom list (Registered Patterns).

Recover deleted file from PhpStorm and SourceTree

I have an open project in PhpStorm that I manage using SourceTree. I was trying to remove some image files from a commit using SourceTree, but accidentally selected a file that should not be deleted. I haven't changed anything (in either PhpStorm or SourceTree) since deleting the file. I tried to do Ctrl+Z in SourceTree but nothing happened. I then checked in PhpStorm Vcs -> local history, but it didn't show the file. How can I recover this file?
Try to right click on project main folder in phpStorm and select Local history / Show History in context menu (not vcs / local history). The file should be at the list as "Deleting".
This is documented by JetBrains here
TL;DR

manual installation of Web Developer addon in Chrome

There's very little documentation at GitHub:
The extension can be installed in Chrome by loading the unpacked
extension in build/chrome as described in the Chrome documentation.
The extension can be installed in Firefox by installing
web-developer-firefox.xpi like a regular extension or automatically
with ant install.firefox and the Extension Auto-Installer extension.
Anyone knows how to install in Chrome using the GitHub master zip? When I downloaded the master files, I noticed there isn't a build/chrome folder, so maybe this information is out of date.
UPDATE: Using the unpackaged extension method, I get an alert that makes me move several files in order to recreate the file structure specified in manifest.json, but I get stuck with an alert that states:
Default locale was specified, but _loacles subtree is missing.
If you want to load an Extension from git-hub for testing , follow these steps:
Visit chrome://extensions in your browser (or open up the settings menu by clicking the icon to the far right of the Omnibox and select Extensions under the Tools menu to get to the same place).
Ensure that the Developer Mode checkbox in the top right-hand corner is checked.
Click Load unpacked extension… to pop up a file-selection dialog.
Navigate to the directory in which your extension files live(Go to Root Folder of manifest.json file) , and select it.