How to enable Run on save? #17298
Answered
by
lnicola
hichemfantar
asked this question in
Q&A
-
Clicking the built-in I have to use: |
Beta Was this translation helpful? Give feedback.
Answered by
lnicola
May 28, 2024
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hichemfantar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 usecargo watch
.