Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>quick-running-rustNew to Visual Studio Code? Get it now.
quick-running-rust

quick-running-rust

SuzumiyaHaku

|
409 installs
| (0) | Free
只是快速运行rust main函数的插件。This is just a extension to run Rust script quickly.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

quick-running-rust README

Welcome to your VS Code Extension

只是一个运行rust文件快捷键

Translate: It's just a shortcut to run a trust file

在*.rs文件右键打开点击Run rust main function,就会在命令行运行如下命令,_dist是默认编译的路径

Translate: In *.rs file Right click to open and click 「Run rust main function」 and the following commands will be run on the command line. _dist is the default compiled path.

MAC:

rustc xx.rs out-dir ./_dist/xx && ./_dist/xx

Window:

rustc xx.rs out-dir ./_dist/xx ; .\_dist\xx.exe

使用之前先检查控制台能不能执行上面的命令!!!

Translate: Before using, check whether terminal can run the above command normally!!!

设置 _dist

Translate: Setting _dist 搜索找到Quick Running Rust Configuration。修改defaultFolder

Perferences > setting > User > Extensions > Quick Running Rust Configuration > defaultFolder

explain

说明图片: explain 备用的说明图片1: https://htmlpreview.github.io/?https://github.com/CloudyDragon/web/blob/master/quick-running-rust.html 备用的说明图片2: https://gitee.com/DragonDoctor/web/raw/master/images/quick_running_rust.png

发布日志

Release Notes

0.0.6

  • 作者:群里底层玩家. gao107de@163.com
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft