Autocomplete
What is Autocomplete?
Autocomplete: Complete a file name, command, or path. Press twice to list all matches. In a terminal, pressing Tab completes a file name, folder or command you have started typing. If there are several matches, pressing Tab twice lists them. Code editors offer the same idea for variables, functions and imports.
Frequently asked questions about Autocomplete
How is Autocomplete used in practice?
It saves typing, but the bigger benefit is fewer mistakes. A path completed by the shell exists. A path you typed from memory may contain a typo you only discover when the command fails.
What should you keep in mind with Autocomplete?
Most shells can complete more than file names. With the right setup, git che<Tab> completes to checkout, and kubectl get po<Tab> completes pod names from your cluster. Installing completion for the tools you use daily, such as Git, Docker and kubectl, is a small investment that pays back every day.
At a glance
| Category | Keyboard shortcuts |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |