How to "Show in Explorer" / "Reveal in Finder" in PhpStorm? - phpstorm

In PhpStorm, is there a way to show a file in Windows Explorer (for Windows) or Finder (for Mac)?
Even better, is it possible to add such an option in the menu when I right click on a tab?
Do I need a plugin for that?

You can always use Navigate | Select in... | Show in Explorer (Alt + F1, 8 using Default keymap) for that.
Same shortcut will work from other places (e.g. Project View panel etc).
If you still want to add context menu item .. then you can do that in Settings/Preferences | Appearance & Behaviour | Menus & Toolbars --> Editor Tab Popup Menu. The actual action is called Show in Explorer

I don't find any plugins for do that.
Perhaps because this is a simple function which can launch/call easily with a simple shortcut keyboard.
File > Settings > Keymap > 'explorer' > Other > Show in Explorer.
Add shortcut for this function and you can open a new explorer OS in a same directory that your file is.
Perhaps if I don't understand "Open in Explorer" you can also easily point your view 'project' in a exact directory where is your file is.
For that I assign a shortcut in a function named 'Select In'. With this a menu appear and I can select lot of function and one for target project View directly where is my file active in editor (very useful).

Related

What is the shortcut key to show/hide tool buttons in PhpStorm?

I am unable to find the shortcut key for this button. And as I do not know the name of this button I cannot search for it.
There is no shortcut by default, but you can go to Settings and type "tool buttons" into the search bar. Then you can assign a keystroke to "Tool Buttons" feature.
Here is your answer from official docs
Hiding all tool windows attached to the same tool window bar
Do one of the following:
Press and hold the Alt (for Windows and Linux users) or ⌘ (for macOS users) key, and click hide on the title bar of any of the tool
windows attached to the corresponding tool window bar.
Choose Window | Active Tool Window | Hide Side Tool Windows in the main menu. This command hides all the tool windows attached to same
tool window bar as the active tool window or the last of the active
tool windows.
I find that double tapping Alt key does the trick for me.
Maybe is Ctrl+Tab
Check this. In the link you can read :
Switch between the tool windows and files opened in the
editor. Ctrl+Tab

Keyboard shortcut to access Chrome bookmarks (mac)

I seem to be almost entirely mouse-free at this point, minus being able to access the Bookmarks bar in Chrome with a keyboard shortcut! I've searched the web quite a bit for an answer, but to no avail....any ideas or workaround?
EDIT: Use Firefox. You can CMD + B --> will open Bookmarks navigator, and you can type to search, hit TAB, and then arrow through results
If you are hoping to click on the actual bookmarks on your Google Chrome browser, using keyboard shortcuts, on Mac, you can make use of Mac's Keyboard shortcuts feature.
Open System settings app
Open Shortcuts section under Keyboard
Choose App shortcuts
Click +
Choose Google Chrome as application
On the title field, enter Bookmarks->{Bookmark-name-goes-here}
Set a hotkey
Save the changes and you can now use this hotkey to call that bookmark. This basically is setting a shortcut to your browser's menu item.
Holmes is an extension that allows a shortcut activated bookmark search similar to Garrett's answer but without the "read and change all the data on any websites that you visit" permission.
Install the tool then press shift+alt+H
⌘ + Option + b
or
⌘ + Shift + b
Try this shortcut
cmd+opt+B
I found a chrome plugin that is super useful and goes beyond what I was hoping for. It's called Bookmark Navigator. Here is the link https://chrome.google.com/webstore/detail/bookmark-navigator/bfibpphfhdpgkmbpkfmhdiklgcfmmkha
Below is a picture of what it looks like. The tool is summoned with cmd + b, and then you can start typing to search all of your bookmarks. You can press enter to access the bookmark at top of list, or use arrow keys to navigate further down the list.
This is the fastest and most user friendly option I have found.

How to use Scroll from Source without mouse but keyboard in PhpStorm?

PhpStorm offers the functionality to "Scroll from Source", which shows the current open file in the Project's sidepanel like so:
Before click, the src folder is closed in sidebar, MailerFactory.php is open in editor's panel.
After click, sidebar has opened and selected the MailerFactory.php class in sidebar.
I don't want to use the mouse for this action, yet I am unable to find it in the keymap nor when I search for all actions using Ctrl + Shift + A (aka: "Enter action name or option name").
I can I scroll from source using the keyboard only?
There is no shortcut for that option (yes, that's an option of Project View panel and not actual action).
But you can use this one instead: Navigate | Select In... | Project View (Alt+F1, 1 using Default keymap).

PhpStorm - Highlight active file in project navigator

Does anyone know how to highlight the current file in the project navigator, or a hotkey to expand folders to the active file?
I have looked around and couldn't find anything that points to this as an option.
Here is a nice feature: Autoscroll to Source and Autoscroll from Source.
It is available in all IntelliJ products .
On Demand
Should be used if you do not like when your Project View panel gets changed/moves without your consent.
Navigate | Select in... | Project View
Alt+F1, 1 for Windows/Linux
⌥+F1, 1 (or fn+⌥ Opt+F1, 1) for Mac OS
You may also click on "target like" icon on actual Project View panel with your mouse:
If you wish to use shorter/single shortcut instead of standard 2-step shortcut:
install "Extra Actions" plugin
assign custom shortcut to newly provided "Select in Project" action
As of some 2017.x version (or maybe even 2016.x) the IDE has own dedicated Select in Project View action (so no need for additional plugin). You can find it in Keymap under the Other branch (hint: use search box to narrow the list).
Automatically
Can be used if you do not mind (or even want) to have Project View panel keep focused on currently edited file (so it scrolls/moves up and down/expands when needed).
NOTE: with frequently switching between the files (e.g. CSS & HTML) when you have a lot of files in your project such "scrolling" may become quite annoying pretty fast (especially if such files are located in the invisible-right-now part of the project tree).
Activate Autoscroll from Source option in Project View panel (right click on tool window header bar/title or use menu under "gear" icon):
In modern versions (2020.3 and newer) that option was renamed and is now called Always Select Opened File:
Just click the circular icon (with tooltip Scroll from Source) to navigate in the project directory tree and highlight the corresponding active file in the PhpStorm editor.
On PhpStorm 2020.3 you have to click the cog icon in the project pane and select Always Select Opened Files:
The above answers are all valid but unfortunately you'll have to enable them for each project.
There's a plugin from Jetbrains that will enable this behaviour by default for all new projects.
http://plugins.jetbrains.com/plugin/7575?pr=

Shortcut for open a recently closed file/Tab in MyEclipse Editor

I know i can do it by Alt+f then 1 or 2 or 3. Is there a way give new shortcut in MyEclipse. I unable to find & set it under Windows > Preferences > General > Keys.
For Example: I have opened a file called Task.java in MyEclipse. I closed it accidentally. Now i want to open it again without navigating through Package Explorer.
I want Something similar,
Ctrl + Shift+ T
to open recently closed Tab in the Firefox & Google Chrome.
Press Ctrl+Shift+L to view all the shortcut keys , Press the same once again to open the Keys Binding dialog.
Type the text in the filter text box for eg. activate , you will get Activate Editor in the search result list with default key of F11.
Double click it and choose your favorite key you want in the Bindings say F9. Click Apply to Change it. Click OK.
Illustration