rust-lang / rust-lang/rust-analyzer

Add quotes when rust-analyzer autocompletes println!

Open
#14,655 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.