I recently moved from Windows to OS X and transferred my PHPStorm preferences in the process. On my Windows machine, I remember I had bind ctrl + w to close the current window. This is what PHPStorm listens for on my Mac too. I'd like to be more consistent in how I close my sub-windows in my applications and want to change this binding to cmd + w. I can't seem to find where in the "Keymaps" section this binding is set at. Does anyone know the name of this action?
Have you tried searching your keymap for "Close" ? This will narrow list of possible actions a lot.
In any case: Preferences | Keymap
Action: Main Menu | Window | Editor Tabs | Close
Related
If there is a way in PhpStorm 2021.1 to open some files from my project ?
I want quick access to /storage/logs/laravel.log file...
Thanks in advance!
Use Bookmarks. In particular: Bookmark with mnemonic. It works on lines as well as whole files.
https://www.jetbrains.com/help/phpstorm/bookmarks.html#add-mnemonic-line-bookmark
Select a file in the Project View panel
Hit the Edit | Bookmarks | Add Mnemonic Bookmark shortcut (Ctrl+F11 here on Windows)
Select the mnemonic (I suggest selecting numeric 0..9 for a fast keyboard navigation since they have default shortcuts already assigned).
That's it. Now you can press Ctrl + digit (Ctrl + 0 in this example) to quickly open that file.
NOTES:
If you delete the bookmarked file (pretty typical situation for the log files) then the bookmark will be automatically removed (maybe not straight away but on next project opening but still).
You can also use Edit | Bookmarks | Go to Mnemonics... (Ctrl+Shift+F11 is the default shortcut here on Windows) to navigate between multiple mnemonic bookmarks (if you use Letter mnemonic and do not have custom shortcut for that)
You can also use plain/ordinary bookmarks (not mnemonics): the only difference is that you will have to use Bookmarks toolwindow or Bookmarks popup (Edit | Bookmarks | Show Line Bookmarks... Shift + F11 here on Windows) to locate and navigate to them.
Shortcuts can be changed at the usual Settings/Preferences | Keymap screen:
In Google Chrome and Atom (and probably also in other programs), it's possible to 'Go to tab # 1' by pressing CMD + 1 (for Mac) or SUPER + 1 (for Windows). I love that feature more than I love my mother, - but I can't find anyone else requesting a way to set it up in PhpStorm (for some reason).
I know that I can navigate to other tabs using the Switcher or pressing CMD + [ or CMD + SHIFT + [. I have read all of this page: https://www.jetbrains.com/help/phpstorm/2017.1/navigating-between-editor-tabs.html - without any luck.
I've also gone through the Keymap in the settings, looking for a way to set it up - but I can't find a way. In the Keymap - there is no actions called: 'Go to tab # 1' nor 'Go to tab # $var'.
There is no such built-in functionality available.
https://youtrack.jetbrains.com/issue/IDEA-68324 -- follow this ticket (star/vote/comment) to get notified on any progress.
But you may use GoToTabs plugin for such browser-like tab navigation.
The goal is simple - I want to open all modified files at once. Is there a fast way to do it?
Currently I am using Alt + 9 and then open files, but that is not fast enough (press shortcut, select all, press Enter, manually open files that are "unversioned")
You can create a macro for the keystrokes you mentioned, and assign a keyboard shortcut to it:
Edit | Macros | Start Macro Recording
Perform the keystrokes: ALT+9, CTRL+A, ENTER, ALT+9
Edit | Macros | Stop Macro Recording, give it a name
Settings | Keymap | Macros, add keyboard shortcut.
How can I open few projects in left work area in PhpStorm? I need to quick switch between projects.
If you want to open more than one project in this way (and by this I mean so they have their own different settings), then currently it is not possible.
http://youtrack.jetbrains.com/issue/WI-15187 -- vote/star/comment to get notified on progress.
If you need to include files from those projects for reference purposes (to see how you have done it there, to copy some code from there etc) -- you can include them under "External Libraries" -- Settings | PHP | Include paths. Files included this way are protected from modifications.
If you need to modify those files ... you can add them into actual project as Additional Content Root (Settings | Directories| Add Content Root) -- such folders will be treated as part of the actual project with no separate settings.
Other than that -- Alt + Tab (or whatever the shortcut is on your OS) to switch between different PhpStorm windows (each project is opened in separate window/frame).
This is a right on time answer.
It is possible to quick switch between project by adding a keyboard shortcut to the "manage project" menu.
To do just that, go to Settings > Keymap and search for "Manage Projects". Then add it the keyboard shortcut you desire and you're all set.
Hope this will help someone looking for an answer like I did.
As LazyOne said, you can add paths to your project from Setting | PHP | Include paths or from the useful keystroke F4.
But I'd like to also share how I organise my projects, I think when you create a project, you should not open a new window but instead open it in the same window.
This way you don't get confused between the different opened windows.
In settings you can assign a keystroke to Reopen recent projects. I then use ctrl + shift + R but it is up for you to chose the keystroke you like.
Hope this will help you as I struggled as well to find a way to manage all my current projects.
This seems like a simple task but I can't seem to track down an answer.
In JetBrains' PHPStorm, what is the shortcut for switching between split panes? (Using OS X)
The default for "Go to next splitter" for Mac users is Option+Tab
Window | Editor Tabs | Goto Next Splitter
Window | Editor Tabs | Goto Previous Splitter
Keyboard shortcuts can be changed at Preferences | Keymap