DioxusLabs / DioxusLabs/dioxus
Extension feature: Component template
Open
enhancement
vscode extension
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
## Feature Request
My idea is to have a new feature for the dioxus extension that allows you to create a new file with a component template.
## Implement Suggestion
- Add an option in the right click menu in the vscode file explorer panel "New Component"
- When the user clicks, it prompts the user for the name of the component
- The new .rs file is added that looks like this:
```rust
use dioxus::prelude::*;
#[component]
pub fn MyComponent() -> Element {
rsx! {
}
}
}
```
- mod.rs is updated or added if it doesn't exist
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.