rust-lang / rust-lang/rust-analyzer
Add quotes when rust-analyzer autocompletes println!
Open
Nobody has claimed this yet.
C-feature
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
I think this should be pretty simple (I really don't know, it's just a suggestion). When rust-analyzer autocompletes the println! macro, I think it could be a good idea to add quotes inside the parenthesis, because the compiler enforces them to use the macro.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing rust-analyzer's completion handling for the println! macro. Update the completion so its parentheses contain quotes, then run the relevant completion tests and confirm the generated snippet is accepted by the compiler.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100