How do I fix auto-completion not working in Sublime Text?
1. Make sure that automatic completion is enabled: Check the user settings in Preferences > Settings, and confirm "auto_complete": true; 2. Make sure that there is complete content in the file: Sublime's default automatic completion depends on existing text for suggestions, and you need to manually enter duplicate content to trigger; 3. Install Package Control and language plug-ins: such as SublimeJEDI or tern to get smarter code suggestions; 4. Restart or reset settings: Try restarting the software, delete the settings file, or run safe mode to troubleshoot problems. The above steps can be checked and fixed in the Sublime Text in sequence.
Auto-complete in Sublime Text is super handy, and when it stops working, it can really slow you down. The good news? It's usually something simple — either a setting got flipped, or the built-in auto-complete just isn't doing what you expect. Let's walk through some of the most common fixes.
Check if Auto-Completion is Enabled
First things first — make sure auto-complete is actually turned on. Sublime Text has this feature enabled by default, but sometimes settings get changed without you realizing.
Here's how to double-check:
Go to Preferences > Settings
-
Look in your user settings (the right side) and make sure you have:
"auto_complete": true
If it's missing or set to false
, add or change it. Also check for any conflicting plugins or custom key bindings that might interfere with the standard behavior.
Make Sure There's Content to Complete
Sublime's native auto-complete relies on what's already in your file (and open buffers) to suggest matches. If you're typing something completely new, there won't be anything to pull from.
Try this:
- Type a variable or function name somewhere else in the file
- Start typing the same name again — Sublime should suggest it
This kind of basic auto-complete is pretty limited compared to full IDEs, so if you're expecting smart suggestions based on language syntax or libraries, you'll need more than the default setup.
Try Installing Package Control and Language-Specific Completions
If you want smarter auto-complete — like code suggestions based on the programming language you're using — you'll probably want to install Package Control (if you haven't already), then grab something like SublimeJEDI for Python or tern for JavaScript.
Here's a quick path forward:
- Install Package Control
- Use it to install a language-specific plugin
- These often come with their own auto-complete features or integrate with LSP (Language Server Protocol)
These tools give you much better suggestions, including function signatures, object properties, and more.
Restart Sublime or Reset Settings
If none of the above works, try restarting Sublime Text — sometimes that's all it takes. If the issue persists, consider resetting your settings to default by deleting or renaming your Preferences.sublime-settings
file (make a backup first).
Also, try running Sublime in safe mode ( subl --safe-mode
from the terminal) to see if any third-party packages are causing the problem.
That's about it. Fixing auto-complete issues in Sublime Text usually comes down to checking a few core settings and knowing whether you're relying on basic completion or a more advanced package. Doesn't always take much to get it working again.
The above is the detailed content of How do I fix auto-completion not working in Sublime Text?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

How to implement auto-complete and auto-fill through Vue and ElementPlus Introduction: In modern web development, form auto-complete and auto-fill are an important functional requirement. It can improve user experience and reduce the tediousness and errors of repeated input. This article will introduce how to use Vue and ElementPlus to implement auto-complete and auto-fill functions, and provide corresponding code examples. 1. What is autocomplete and autofill? Autocomplete (Autocomplete): When the user enters a text

How to Handle Autofill and Autocomplete in PHP Forms As the Internet develops, people increasingly rely on autofill and autocomplete features to simplify their operations on the website. Implementing these functions in PHP forms is not complicated. This article will briefly introduce how to use PHP to handle auto-fill and auto-complete of forms. Before we begin, we need to clarify what autofill and autocomplete are. Autofill refers to automatically filling in the fields in a form for users based on their previous input or history. For example, when the user enters an email

With the popularity of WeChat mini programs, various development needs are also increasing. Among them, the text box auto-complete function is one of the commonly used functions in mini programs. Although the WeChat applet provides some native components, some special needs still require secondary development. This article will introduce how to use PHP language to implement the automatic completion function of text boxes in WeChat applet. Preparation Before starting development, you need to prepare some basic environments and tools. First, you need to install the PHP environment. Secondly, you need to obtain your own Ap in the WeChat applet background

Introduction to how to use Layui to implement automatic search function: Layui is a lightweight front-end development framework that is simple and easy to use. It has a rich set of components and modules, including forms, pop-up windows, navigation, menus, etc. The autocomplete component can help us implement intelligent prompts when searching and provide a better user experience. This article will introduce in detail how to use Layui's autocomplete component to implement the search function, and provide specific code examples. Step 1: Introduce Layui and jQuery First, introduce L in HTML

1. Make sure that automatic completion is enabled: Check the user settings in Preferences>Settings and confirm "auto_complete": true; 2. Make sure that there is complete content in the file: Sublime's default automatic completion depends on existing text for suggestions, and it is necessary to manually enter duplicate content to trigger; 3. Install PackageControl and language plug-ins: such as SublimeJEDI or tern to obtain smarter code suggestions; 4. Restart or reset settings: Try restarting the software, delete the settings file, or run safe mode to troubleshoot problems. The above steps can be checked and fixed in the SublimeText that automatically completes failures.

How to implement auto-complete function in PHP and Elasticsearch Introduction: Auto-complete function is one of the common features in modern web applications. It improves user experience and search accuracy by providing relevant tips and suggestions based on user input. Elasticsearch is a powerful open source search engine that provides fast, scalable and efficient full-text search capabilities. Combining PHP and Elasticsearch, we can easily implement autocomplete functionality. step:

SublimeText's automatic completion function can be enabled and customized to improve coding efficiency through the following steps: 1. Enable basic automatic completion, ensure that the settings include "auto_complete": true, and use the shortcut keys Ctrl Space (Windows/Linux) or Cmd Space (Mac) to manually trigger the suggestion list; 2. Customize the completion source, control the suggestion source by modifying the "auto_complete_use_tags" and "auto_complete_with_all_tabs" settings, and adjust the pop-up delay of the "auto_complete_delay" setting; 3. Use the code slice

To clear the Safari search bar to automatically complete suggestions, 1. Open Settings → Select Safari browser → Click "Clear History and Website Data"; 2. If you use iOS 15 and above, you can enter Safari settings to turn off the "Quick Suggestions" function; 3. Use traceless mode, manually delete input content or clean up history regularly to reduce Lenovo interference. The above methods can effectively control Safari's automatic completion behavior and improve privacy protection and user experience.
