Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pacexy committed Jan 29, 2025
1 parent 6c99c00 commit ef3d2da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ After [initialization](#initialization), Rustlings can be launched by simply run
This will start the _watch mode_ which walks you through the exercises in a predefined order (what we think is best for newcomers).
It will rerun the current exercise automatically every time you change the exercise's file in the `exercises/` directory.

You can specify an editor command with the `--editor` option to open exercises directly from watch mode:

```bash
rustlings --editor code # For VS Code
rustlings --editor vim # For Vim
rustlings --editor "code --wait" # For VS Code with wait option
```

Then press `e` in watch mode to open the current exercise in your editor.

<details>
<summary><strong>If detecting file changes in the <code>exercises/</code> directory fails…</strong> (<em>click to expand</em>)</summary>

Expand Down

0 comments on commit ef3d2da

Please sign in to comment.