Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Rust Mod GeneratorNew to Visual Studio Code? Get it now.
Rust Mod Generator

Rust Mod Generator

Kamasylvia

|
143,107 installs
| (1) | Free
Create a mod quickly.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Rust Mod Generator

Use this extension to generate a rust mod quickly.

Features

Create a rust module from the Explorer.

image image

Note: The target folder/directory has to contain either a "mod.rs" or a "lib.rs" file, and the workspace has to contain a Cargo.toml file.

Create a rust module from the command.

image

Note: A .rs file has to be focused on, such that the extension can determine the path of the new mod.

Requirements

None.

Extension Settings

This extension contributes the following settings:

  • rust-mod-generator.autoFocus: Enable to auto focus on the new created module.
  • rust-mod-generator.selectAccessModifier: Enable to set the access modifier when creating a new module.
  • rust-mod-generator.addModDeclaration: Enable to prepend <modifier> mod <mod_name>; to a resource file.
  • rust-mod-generator.enableFileMenuItem: Enable to show the context menu item on Rust files in addition to folders.

Known Issues

Welcome to post any issue.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft