Home  >  Article  >  Development Tools  >  How to turn off sublime auto-completion

How to turn off sublime auto-completion

下次还敢
下次还敢Original
2024-04-03 14:33:13787browse

To turn off Sublime Text’s auto-completion feature, you can do the following: Cancel the current suggestion directly: Press the Ctrl Space key. To permanently turn off: Set the "auto_complete" value to false in the Preferences.sublime-settings file. Close based on a specific scope: Set the "auto_complete" value to false for a specific scope.

How to turn off sublime auto-completion

How to turn off the automatic completion function of Sublime Text

Turn it off directly:

  • Press the Ctrl Space key to cancel the current suggestion.
  • Press the Esc key to turn off the auto-complete function.

Permanently turn off:

To permanently turn off Sublime Text’s auto-completion feature, follow these steps:

  1. Turn it on Preferences file (.sublime-settings in Windows, Preferences.sublime-settings in macOS and Linux).
  2. Locate the following line:
<code>"auto_complete": true</code>
  1. Change true to false:
<code>"auto_complete": false</code>
  1. Save the file and restart Sublime Text to apply the changes.

Turn off based on a specific range:

You can disable autocomplete for a specific range only by setting the autocomplete value for that range:

  1. Create a new range selection, for example:
<code>.my-custom-scope</code>
  1. In the Preferences file, add the following line:
<code>"auto_complete": {
    ".my-custom-scope": false
}</code>

Autocompletion will now be disabled as long as the cursor is within <code>.my-custom-scope</code>.

The above is the detailed content of How to turn off sublime auto-completion. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn