logoalt Hacker News

bandramitoday at 10:20 AM2 repliesview on HN

Genuine question re #1: does your text editor not already do that?


Replies

rhdunntoday at 10:59 AM

Text editors/IDEs have simple autocomplete and the ability to do some expansion, e.g. a for loop with placeholders to fill in. Those work and are still useful.

JetBrains also has local line-based LLM models for various languages.

With the LLM-based autocomplete it a) generally autocompletes more code at once, and b) will often pick up on patterns in the existing code. E.g. if you have a similar method, list of print/string buffer write statements, or other repetitive code in the file it will often use that as a model for the generated code.

show 2 replies
socalgal2today at 10:54 AM

Without ai my text editor auto completes letters into existing identifiers or adds a closing brace

With ai it add several lines of code at once as soon as it thinks it recognizes a common pattern.

It’s not perfect and it can get in the way but it’s amazing when it guesses right and spits out the next 3-4 lines I would have typed

show 2 replies