> ## Documentation Index
> Fetch the complete documentation index at: https://docs.windsurf.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Autocomplete Tips

> Tips for getting the most out of Windsurf Autocomplete including inline comments, Fill In The Middle (FIM), and snooze functionality.

## Inline Comments

You can instruct autocomplete with the use of comments in your code.
Windsurf will read these comments and suggest the code to bring the comment to life.

<Frame>
  <img src="https://exafunction.github.io/public/autocomplete/minimize_boilerplate.gif" />
</Frame>

This method can get you good mileage, but if you're finding value in writing natural-language instructions and having the AI execute them,
consider using [Windsurf Command](/command/plugins-overview).

## Fill In The Middle (FIM)

Windsurf's Autocomplete can Fill In The Middle (FIM).

<video autoPlay muted loop playsInline className="w-full aspect-video" src="https://exafunction.github.io/public/videos/inline_fim/inline_fim_codeium.mp4" />

Read more about in-line FIM on our blog [here](https://windsurf.com/blog/inline-fim-code-suggestions).

## Snooze

Click the Windsurf widget in the status bar towards the bottom right of your editor to see the option to switch Autocomplete off,
either temporarily or until you reenable it.
