Created
February 25, 2014 12:16
-
-
Save dannysmith/9207769 to your computer and use it in GitHub Desktop.
Sublime Text 3: Cucumber Step Finder Plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Install the Cucumber Step Finder plugin | |
| This adds Cmd + Y for finding step defs by name and Cmd + Ctrl + M for match and jumping to the step you've currently got the cursor on. | |
| Now add the ability to ctrl + click on a method (in a step dfinition file, for instance) and jump to the method definition: | |
| From here: http://stackoverflow.com/questions/16235706/sublime-3-set-key-map-for-function-goto-definition | |
| Windows - create Default (Windows).sublime-mousemap in %appdata%\Sublime Text 3\Packages\User | |
| Linux - create Default (Linux).sublime-mousemap in ~/.config/sublime-text-3/Packages/User | |
| Mac - create Default (OSX).sublime-mousemap in ~/Library/Application Support/Sublime Text 3/Packages/User | |
| Now open that file and put the following configuration inside | |
| ````json | |
| [ | |
| { | |
| "button": "button1", | |
| "count": 1, | |
| "modifiers": ["ctrl"], | |
| "press_command": "drag_select", | |
| "command": "goto_definition" | |
| } | |
| ] | |
| ```` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment