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

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

Open
nurpax opened this issue Dec 22, 2024 · 0 comments
Open

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

nurpax opened this issue Dec 22, 2024 · 0 comments

Comments

@nurpax
Copy link

nurpax commented Dec 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@nurpax @Vexu and others