I am studying plugin development and I want to achieve this effect at the completion of the code in this area. Please help me!

I have checked the official documentation and found a matching [Code Completion] introduction, but it is not consistent with the effect I want to achieve. Now I am requesting assistance to tell me how to implement this kind of code completion shown in the image.

Like this:

Not like this: