top | item 38501744

(no title)

biofunsf | 2 years ago

> I build "brushes" for refactoring my code every day.

Anyone know what the author means by brushes?

Also any recommendations for non-Copilot IDE LLM integrations? I've tried a couple but they felt far behind Copilot in terms of quality and smooth IDE integration.

discuss

order

notsylver|2 years ago

https://githubnext.com/projects/code-brushes/

You select some code and apply a brush and it'll use a preset prompt to modify it: "Make Readable", "Add Types", "Document" are some of the options. Copilot has a pretty poor implementation, and mostly they just butcher your code - but they seem very powerful, especially with custom brushes.

larve|2 years ago

Things like "replace this PHP5 class with a new PHP8 readonly dataclass", "Convert this react components to have imageLinks as prop srcsets". Nothing fantastic, but damn this stuff is tedious to do manually. Now I can just batch process my files et voila.