Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 authored Oct 6, 2024
1 parent 421d4b0 commit 4aa9e62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,17 @@ Document Symbols can be triggered by:

### Go to definition

`ruby-lsp-rspec` supports go-to-definition on methods defined through `let` and `subject` DSLs in spec files.

In VS Code this feature can be triggered by one of the following methods:

- `Right click` on the target, and then select `Go to Definition`
- Placing the cursor on the target, and then hit `F12`
- `Command + click` the target

> [!Note]
> This feature requires indexing your spec files so they can't be excluded from Ruby LSP's indexing.
<img src="misc/go-to-definition.gif" alt="Go to definition" width="75%">

## Development
Expand Down

0 comments on commit 4aa9e62

Please sign in to comment.