godot icon indicating copy to clipboard operation
godot copied to clipboard

Parameter names aren't taken into consideration with `capital` setting

Open chrisdoherty4 opened this issue 2 years ago • 1 comments

Its reasonably common to write comments that reference parameter names. Sometimes they're the first word, sometimes they aren't.

Example

// Foo takes a bar. bar should be formatted ...
func Foo(bar string) {}

When title case is enabled it doesn't make any exceptions.

chrisdoherty4 avatar Nov 02 '22 21:11 chrisdoherty4

Good idea, thanks. Currently godot doesn't have any information about code outside comments, and Go doesn't provide any easy way to get it. So I'd say don't expect this feature any time soon.

tetafro avatar Nov 03 '22 07:11 tetafro