Skip to content

Commit 852e4db

Browse files
committed
Merge pull request #38 from agallou/shortcuts
add default keyboard shortcuts
2 parents 4f19273 + e2ee5b2 commit 852e4db

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* [#30](https://github.com/agallou/phpstorm-plugin/pull/30) Easily identify test files via a custom icon ([@agallou])
66
* [#37](https://github.com/agallou/phpstorm-plugin/pull/37) Save test and tested file before run ([@agallou])
7+
* [#38](https://github.com/agallou/phpstorm-plugin/pull/38) Add default keyboard shortcuts ([@agallou])
78

89
## Documentation
910

META-INF/plugin.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@
4343
text="Swicth to test class / tested class">
4444
<add-to-group group-id="GoToCodeGroup" anchor="last"/>
4545
<add-to-group group-id="EditorPopupMenu.GoTo" anchor="last"/>
46+
<keyboard-shortcut first-keystroke="alt shift K" keymap="$default"/>
4647
</action>
4748

4849
<action id="AtoumRunTests" class="pl.projectspace.idea.plugins.php.atoum.actions.AtoumRunTests"
4950
icon="/pl/projectspace/idea/plugins/php/atoum/icons/atoum_16_16.png"
5051
text="run tests">
5152
<add-to-group group-id="RunMenu" anchor="last"/>
5253
<add-to-group group-id="EditorPopupMenu.Run" anchor="last"/>
54+
<keyboard-shortcut first-keystroke="alt shift M" keymap="$default"/>
5355
</action>
5456
</actions>
5557

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Integrates atoum into PhpStorm.
44

55
Features :
66

7-
* Go to the test class from the tested class
8-
* Go to the tested class from the test class
9-
* Execute tests inside PhpStorm
7+
* Go to the test class from the tested class (shortcut : alt+shift+K)
8+
* Go to the tested class from the test class (shortcut : alt+shift+K)
9+
* Execute tests inside PhpStorm (shortcut : alt+shift+M)
1010
* Easily identify test files by a custom icon
1111

1212

@@ -27,6 +27,8 @@ or by an entry bin the right click menu.
2727

2828
![Demo](doc/switch-right_click.png)
2929

30+
The default keyboard shortcut to switch file is alt+shift+K.
31+
3032

3133
### Go to the tested class from the test class
3234

@@ -42,6 +44,8 @@ or by an entry bin the right click menu.
4244

4345
![Demo](doc/switch_back-right_click.png)
4446

47+
The default keyboard shortcut to switch file is alt+shift+K.
48+
4549

4650
### Execute tests inside PhpStorm
4751

@@ -55,6 +59,9 @@ You can run the tests from both the test file or the tested classe's file :
5559

5660
Your test file and tested file will automatically be save before running the test.
5761

62+
The default keyboard shortcut to execute the test is alt+shift+M.
63+
64+
5865
### Easily identify test files by a custom icon
5966

6067
Atoum's test files are displayed with a different icon, like that you will easily differentiate them from other PHP files.

0 commit comments

Comments
 (0)