Skip to content

How to enable Run on save? #17298

Answered by lnicola
hichemfantar asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed, the Run lens isn't going to re-run the program after each save.

For programs that finish (so not Web servers) you can get an approximation of it by setting "rust-analyzer.check.command": "run", but you're not going to see the terminal output. I suggest continuing to use cargo watch.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hichemfantar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants