1. General Shortcuts | |
---|---|
Option+0.9 | Open Corresponding Tool Window |
Command+S | Save All |
Command+Shift+F12 | Toggle Maximize Editor |
Command+Shift+A | Find Action |
Ctrl+Tab | Switch Editor Tabs and IDE Tool Windows |
Command+, | Open Setting Dialog |
Command+Option+F11 | Toggle Full Screen Mode |
Option+Shift+F | Add to Favourites |
Double Shift | Search Everywhere |
Option+Shift+I | Inspect Current file with Current file |
It seems, with the latest MAcOs updates, that Java was also updated, which influenced PhpStorm performance very badly. Anyway, I decided to update my Java. Was $ java -version java version '1.6.051' Java(TM) SE Runtime Environment (build 1.6.051-b11-4) Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode).
▲ up
I noticed a device linked to one of my personal accounts called 'mac os x 920'. I was just wondering if anyone can tell me anything about this operating system. I am just really curious/semi-concerned because a google search isn't really providing any in-depth results. I don't own a mac computer, but I do own an iphone. It seems, with the latest MAcOs updates, that Java was also updated, which influenced PhpStorm performance very badly. Anyway, I decided to update my Java. Was $ java -version java version '1.6.051' Java(TM) SE Runtime Environment (build 1.6.051-b11-4) Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode). The best IDE currently available for Laravel is JetBrains PhpStorm, available for Windows, Mac OS X and Linux. However, once installed, the IDE must be configured to be able to offer a series of facilities for Laravel, both as for PHP classes that for Blade templates engine syntax. Let’s see in detail which are the steps to take: 1.
2. Debugging | |
---|---|
Shift+F8 | Step Out |
F8 | Step Over |
F7 | Step Into |
Option+F8 | Evaluate Expression |
Command+F8 | Toggle Breakpoint |
Command+Option+F9 | Resume Program |
▲ up
3. Find and Replace | |
---|---|
Command+F | Find |
Command+R | Replace |
Command+G | Find Next |
Command+Shift+G | Find Previous |
Command+Shift+F | Find in Path |
Command+Shift+R | Replace in Path |
Omnifocus pro 2 5 3. ▲ up
4. Editing | |
---|---|
Ctrl+Spacebar | Basic Code Completion |
Command+Option+Spacebar | Class name Completion |
Ctrl+J | Quick Documentation Lookup |
Command+Mouse Over | Brief Info |
Command+Shift+Return | Complete Statement |
Command+P | Parameter Information |
Ctrl+O | Override Methods |
Command+N/Ctrl+N | Generate Code |
Command+Shift+Up Arrow/Down Arrow | Move Line(Selection) Up/Down |
Command+Option+T | Surround With.(Begin.End etc.) |
Command+/ | Comment/Uncomment with Line Comment |
Command+Shift+/ | Comment/Uncomment with Block Comment |
Ctrl+I | Implements Method |
Option+Return | Show Intention Actions and Quick Fixes |
Command+Option+L | Reformat Code |
Command+D | Duplicate Current Line |
Command+X/Command+C/Command+V | Cut/Copy/Paste Current line to Clipboard |
Command+Shift+V | Paste from History |
Ctrl+Option+I | AutoIndent Lines |
Command+Backspace | Delete line at caret |
Shift+Return | Start New line |
Command+W | Close Active editor tab |
Option+Return | Show Intention Actions/Quick-Fixes |
Option+Down Arrow | Decrease Current Selection to Previous State |
Option+Up Arrow | Select Successively Incresing Code blocks |
Command+NumPad +/Command+NumPad - | Expand/Collapse Code block |
Command+Del | Delete to end word |
Command+Backspace | Delete to word start |
Command+Shift+Option+] | Select till code block end |
Command+Shift+Option+[ | Select till code block start |
Command+Shift+U | Switch case for Word at Caret or Selected block |
Ctrl+Shift+J | Smart Line Join(HTML and JS only) |
Command+Return | Smart Line Split(HTML and JS only) |
▲ up
5. Refactoring | |
---|---|
F5 | Copy |
F6 | Move |
Command+Del | Safe Delete |
Shift+F6 | Rename |
Command+Option+N | Inline Variable |
Ctrl+T | Refactor This(Show All Available Refactoring) |
Command+Option+M | Extract Method |
Command+Option+F | Introduce Field |
Command+Option+C | Introduce Constant |
Command+Option+V | Introduce Variable |
▲ up
6. Navigation | |
---|---|
Command+O | Go to Class |
Command+Shift+O | Go to File |
Command+Option+O | Go to Symbol |
F2 | Next highlighted Error |
Shift+F2 | Previous highlighted Error |
Command+G | Go to Line |
Esc | Go to Editor |
Command+E | Recent files Popup |
Option+F1 | Select current file/Symbol in any View |
Option+Left Arrow/Option+Right Arrow | Go to Next/Previous Tab |
Command+B | Go to Declaration |
Command+Option+B | Go to Implementation |
Command+Ctrl+B | Go to Type Declaration |
Command+Option+Left Arrow/Command+Option+Right Arrow | Navigate back/forward |
Command+Shift+Backspace | Go to last edit location |
Command+U | Go to super method/super class |
F4 | Edit Source |
Command+Down Arrow | View Source |
Command+]/Command+[ | Move to code block end/start |
Option+Up Arrow/Option+Down Arrow | Go to Previous/Next Method |
Command+Y | Open Quick Definition Lookup |
▲ up
7. Compile and Run | |
---|---|
Command+Shift+X | Run Command Line |
Ctrl+F10 | Run |
Ctrl+F9 | Debug |
Ctrl+Shift+R/Ctrl+Shift+D | Run Context editor from Editor |
▲ up
8. Usage Search | |
---|---|
Command+F7 | Find Usage in File |
Option+F7 | Find Usage |
Command+Shift+F7 | Highlight Usage in File |
Command+Option+F7 | Show Usage |
▲ up
9. VCS/Local History | |
---|---|
Command+K | Commit Project to VCS |
Command+T | Update Project from VCS |
Option+Shift+C | View Recent Changes |
Ctrl+V | VCS Operations Popup |
▲ up
10. Live Template/Snippets | |
---|---|
Command+J | Insert Live Template |
eco | echo' Statement |
fore | foreach(iterable_expr as $value){…} |
forek | foreach(iterable_expr as $key=>$value){…} |
inc/inco | 'include'/'include_once' statement |
prif | private function |
prof | protected function |
pubf | public function |
rqr/rqro | 'require'/'require_once' statement |
▲ up
PhpStorm has keyboard shortcuts for most of its commands related to editing, navigation, refactoring, debugging, and other tasks. Memorizing these hotkeys can help you stay more productive by keeping your hands on the keyboard.
If your keyboard does not have an English layout, PhpStorm may not detect all of the shortcuts correctly.
The following table lists some of the most useful shortcuts to learn:
Shortcut | Action |
---|---|
Double Shift | Find anything related to PhpStorm or your project and open it, execute it, or jump to it. |
Ctrl+Shift+A | Find a command and execute it, open a tool window or search for a setting. |
Alt+Enter | Fix highlighted error or warning, improve or optimize a code construct. |
F2 Shift+F2 | Jump to the next or previous highlighted error. |
Ctrl+E | Select a recently opened file from the list. |
Ctrl+W Ctrl+Shift+W | Increase or decrease the scope of selection according to specific code constructs. |
Ctrl+/ Ctrl+Shift+/ | Comment out a line or block of code. |
Alt+F7 | Show all places where a code element is used across your project. |
If you are using one of the predefined keymaps for your OS, you can print the default keymap reference card and keep it on your desk to consult it if necessary. This cheat sheet is also available under Help | Keymap Reference.
Choose the right keymap
To view the keymap configuration, open the Settings/Preferences dialog Ctrl+Alt+S and select Keymap.
Enable function keys and check for possible conflicts with global OS shortcuts.
- Use a predefined keymapPhpStorm automatically suggests a predefined keymap based on your environment. Make sure that it matches the OS you are using or select the one that matches shortcuts from another IDE or editor you are used to (for example, Eclipse or NetBeans).
- Tune your keymapYou can modify a copy of any predefined keymap to assign your own shortcuts for commands that you use frequently.
- Import custom keymapIf you have a customized keymap that you are used to, you can transfer it to your installation.
Besides the default set of keymaps, you can add more as plugins (such as, keymaps for GNOME and KDE): open the Settings/Preferences dialog Ctrl+Alt+S, select Plugins and search for keymap in the Marketplace.
If your keymap stopped working after an update, it is likely that the keymap is not available by default in the new version of PhpStorm. Find this keymap as a plugin and install it on the Plugins page as described inManage plugins.
Learn shortcuts as you work
PhpStorm provides several possibilities to learn shortcuts:
- Find Action is the most important command that enables you to search for commands and settings across all menus and tools.Press Ctrl+Shift+A and start typing to get a list of suggested actions. Then select the necessary action and press Enter to execute it.
- Key Promoter X is a plugin that shows a popup notification with the corresponding keyboard shortcut whenever a command is executed using the mouse. It also suggests creating a shortcut for commands that are executed frequently.
- If you are using one of the predefined keymaps for your OS, you can print the default keymap reference card and keep it on your desk to consult it if necessary. This cheat sheet is also available under Help | Keymap Reference.
- To print a non-default or customized keymap, use the Keymap exporter plugin.
If an action has a keyboard shortcut associated with it, the shortcut is displayed near the name of the action. To add a shortcut for an action that you use frequently (or if you want to change an existing shortcut), select it and press Alt+Enter.
Use advanced features
Mac Os X Versions
You can further improve your productivity with the following useful features:
Phpstorm 9 0 Mac Os X 10.10
- Quick ListsIf there is a group of actions that you often use, create a quick list to access them using a custom shortcut. For example, you can try using the following predefined quick lists:
- Refactor thisCtrl+Alt+Shift+T
- VCS OperationsAlt+`
- PhpStorm provides a lot of typing assistance features, such as automatically adding paired tags and quotes, and detecting CamelHump words.
- Speed searchWhen the focus is on a tool window with a tree, list, or table, start typing to see matching items.
- Press twiceMany actions in PhpStorm provide more results when you execute them multiple times. For example, when you invoke basic code completion with Ctrl+Space on a part of a field, parameter, or variable declaration, it suggests names depending on the item type within the current scope. If you invoke it again, it will include classes available through module dependencies. When invoked for the third time in a row, the list of suggestions will include the whole project.
- Resize tool windowsYou can adjust the size of tool windows without a mouse:
- To resize a vertical tool window, use Ctrl+Shift+Left and Ctrl+Shift+Right
- To resize a horizontal tool window, use Ctrl+Shift+Up and Ctrl+Shift+Down