From ef3d2da9827564e2333cca1cd1fa0388fcd48dd4 Mon Sep 17 00:00:00 2001 From: pacexy Date: Wed, 29 Jan 2025 19:14:37 +0800 Subject: [PATCH] update docs --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 3118451f80..e786420ee3 100644 --- a/README.md +++ b/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. +
If detecting file changes in the exercises/ directory fails… (click to expand)