I have installed the "Rust Enhanced" plugin onto Sublime Text 3126 and I am able to build and run a *.rs
program opened in Sublime Text.
In reality, the process is a nightmare:
Rust
to compileRust - Run
to run the last executable builtCmd+B just repeats the last command executed.
How can this be shortened into a single shortcut?
The shortcut key for this purpose is Ctrl+Shift+P for Windows and Cmd+Shift+P for Mac.
I like this answer posted on Quora, except that you don't have to do point 1 listed there. Here are the steps:
From the command line(Shift + Right click when inside the folder in Windows), invoke
cargo new PROJECT_NAME --bin
This creates a main.rs file inside src folder. Open it and code away.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With