mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-04-18 13:38:36 +01:00
update docs
This commit is contained in:
parent
6c99c00a51
commit
ef3d2da982
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue