![]() ![]() The list is updated only on saving or opening the document.Other options are available in the script (in ALL_CAPS).Cancels the list and allows the caret to move to the line above/below the current line.Wraps around to the other end of the list if WRAP_ARROW_KEYS is true.Pressing UP at the top or DOWN at the bottom of the list does one of the following:.If INCREMENTAL is set to true, the auto-complete popup is automatically dismissed if there's only one item and you type it in full.This is disabled by default because current versions of SciTE destroy and recreate the auto-complete window when editor:AutoCShow() is called, and this doesn't look nice. If INCREMENTAL is set to true, the list is narrowed down while typing, to show only the relevant items.Only words consisting of alphanumeric characters and/or underscore are used, but this can be changed via IDENTIFIER_PATTERNS. Auto-completes any word (greater than MIN_IDENTIFIER_LEN characters) saved in the document, except for words in comments or quoted strings.Ctrl+Space also triggers the auto-complete list. ![]() Automatically brings up an auto-complete list after typing a minimum of MIN_PREFIX_LEN characters, except while typing in a comment or quoted string.The following are features of my script (the ones I can remember): I took the script above and modified it to include everything from the current language's API files (such as AutoHotkey commands) and IMO improve the usability of the auto-complete popups. I found this to be a step up from SciTE4AutoHotkey's auto-completion, which often annoys me by auto-completing the wrong word or interfering with my use of single-character variable names. This allows any word in the document (whether they are variables, functions, labels, comments, etc.) to be auto-completed. This script may not behave well if you have auto-completion enabled in SciTE properties. to suggest a whole "" string) and dashes, (e.g. This example allows identifiers to include dots (e.g. What constitutes an identifier is determined by the list of patterns in IDENTIFIER_PATTERNS. It doesn't use any external files for lists of identifiers. It scans the file for identifiers on save, open and buffer switch and uses those identifiers in auto-completion. This is a SciTE startup script that provides auto-completion for any file type. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |