Skip to content

autofixes for common problems, not just for unused vars #268

Open
@nurpax

Description

@nurpax

Just thought that an autofix for something like this would be awesome:

std.debug.print("this is a number: {d}\n", 13)

->

std.debug.print("this is a number: {d}\n", .{13});

I have the python print() statement in muscle memory and I find it nearly impossible to retrain myself to write the correct Zig syntax for std.debug.print. OTOH, an editor might fix it easily.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions