Skip to content

VSCode cannot auto trigger format_string completion #22001

@A4-Tacks

Description

@A4-Tacks

rust-analyzer version: rust-analyzer 0.4.2848-standalone

rustc version: rustc 1.95.0-nightly (a293cc4af 2026-01-30)

editor or extension: VSCode

code snippet to reproduce:

fn main() {
    let num = 2;
    const nun: i32 = 2;
    format!("{}")
}

Cursor after "{ input n

In VSCode, it is necessary to manually press Ctrl+Space to trigger completion
In vim, no this bug

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions