Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code assit: remove extra argument(s) #18142

Open
Kmeakin opened this issue Sep 18, 2024 · 0 comments
Open

Code assit: remove extra argument(s) #18142

Kmeakin opened this issue Sep 18, 2024 · 0 comments
Labels
A-assists C-feature Category: feature request

Comments

@Kmeakin
Copy link

Kmeakin commented Sep 18, 2024

fn f1() {}

fn f2() {
    f1("hello");
    f1("hello", "rust");
}

It would be nice to save some typing if rust-analyzer could provide a fixit to delete extra arguments when a function is called with too many arguments (ie Ctrl+. on "hello" or "rust" in the code above)

@Kmeakin Kmeakin added the C-feature Category: feature request label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-assists C-feature Category: feature request
Projects
None yet
Development

No branches or pull requests

2 participants