Podpowiadanie kodu w edytorze

Inline code completion (fill-in-the-middle) · id codecompletion · aliases: code completion, code autocompletion, fill-in-the-middle, FIM, uzupełnianie kodu, autouzupełnianie kodu

Model dopisuje kolejne linie lub bloki kodu w miejscu kursora; systemy uczone metodą fill-in-the-middle mogą korzystać zarówno z kodu przed, jak i po luce.

A model writes the next lines or blocks of code at the cursor; systems trained with fill-in-the-middle can use code both before and after the gap.

In one sentence

Edytor sam podsuwa dalszy ciąg kodu, który właśnie piszesz, a ty przyjmujesz go jednym klawiszem albo piszesz dalej.

Your editor suggests how the code you are typing should continue, and you accept it with one key or keep typing.

Problem it solves

Programista traci czas na wpisywanie powtarzalnych fragmentów i szukanie, jak dokładnie wywołać znaną mu tylko z grubsza funkcję.

Programmers waste time typing repetitive code and looking up exactly how to call a function they only half remember.

What it does

Działa jak podpowiedzi słów w telefonie, tylko że zgaduje całe linie kodu, patrząc też na to, co stoi niżej w pliku.

It works like word suggestions on a phone keyboard, but guesses whole lines of code and also looks at what comes later in the file.

Everyday example

Zaczynasz pisać funkcję liczącą rabat, a edytor od razu proponuje jej resztę w szarym kolorze, zgodną z nazwami użytymi wyżej.

You start writing a function that calculates a discount, and the editor shows the rest of it in grey, using the names from above.

This concerns you if you…

Related topics

Sources