zls icon indicating copy to clipboard operation
zls copied to clipboard

Autocompletion for struct fields in function parameters

Open foxnne opened this issue 3 years ago • 0 comments

pub const Settings = struct { x: f32, y: f32 }; pub fn example (settings: Settings) void {}

The goal would be to provide a list of the fields in Settings when pressing . when calling the example function: example( .{ . //completion for x = f32 or y = f32 });

foxnne avatar Jul 16 '22 17:07 foxnne