Code completion¶
Context-aware suggestions as you type: global functions, object methods and properties (with type inference), types after the New operator, keywords and local variables.
Shortcut: Ctrl+Space
Global functions by prefix¶
After typing Сообщ inside the procedure, prefix-based completion is triggered. The popup lists global functions starting with that string, including Сообщить.
Object methods via dot (type inferred from New)¶
The type of Список is inferred from the Новый Массив assignment, and typing Список. pops up the array's methods. Typing Доб filters the list down to the Добавить method.
Types after the New operator¶
After typing Новый Масс, type completion is triggered. The list offers classes starting with Масс (e.g. Массив), and the highlighted class shows its constructor signature with the number of syntax variants.
Local variable completion¶
Two local variables КоличествоСтрок and СуммаПродаж are declared in the procedure, and typing Сумм triggers completion. The popup offers the local variable СуммаПродаж.
Module procedures and functions¶
After typing Вычисл in the procedure body, completion of the current module's methods is triggered. The list offers the ВычислитьИтог function with its signature and description.
Collection members (ValueTable)¶
The type of Таблица is inferred from Новый ТаблицаЗначений, and typing Таблица. pops up its members. The popup offers the value table's properties and methods such as Колонки and Добавить.
Common module methods¶
After typing ОбщегоНазначения.Знач, completion of the common module's members is triggered. The list offers the module's exported methods (e.g. ЗначениеРеквизитаОбъекта) with their signatures and return types.
Metadata collections (Catalogs.)¶
After typing Справочники., completion of the metadata object collection is triggered. The list offers the configuration's catalogs along with manager methods.
Enumeration manager members¶
After typing Перечисления.ВажностьПроблемыУчета., completion of the enumeration manager's members is triggered. The list offers the enumeration's own values together with the manager's methods.
OneScript: library classes after New (with #Использовать)¶
In a OneScript module with #Использовать demolib, typing Новый Форматир triggers completion of the imported library's classes. The list offers the library classes starting with that prefix.
OneScript: library module methods¶
In a OneScript module with #Использовать demolib, typing СтроковыеУтилиты. triggers completion of the library module's members. The list offers the exported methods of the СтроковыеУтилиты module.
OneScript: library classes/modules appear only with #Использовать (or within the same package)¶
First, completion after Новый Форматир without #Использовать offers nothing from the library, then the #Использовать demolib directive is added at the top of the file. After that the same input triggers completion of the library's classes and modules.
Structure fields from the parameter description¶
The Заказ parameter is described in a BSLDoc comment as a structure with fields Номер and Сумма, and typing Заказ. triggers completion. The list offers the structure fields with the types and descriptions taken from the comment.
Structure fields added via Insert()¶
Fields are added to the Запись structure via Вставить("Имя", …) and Вставить("Возраст", …), and typing Запись. triggers completion. The list offers the fields Имя and Возраст inferred from those calls.
Structure fields: description + dynamic Insert()¶
The Заказ structure is described in a BSLDoc comment with fields Номер and Сумма, and is extended in the body by Вставить("Скидка", 0). After typing Заказ., completion offers both the documented fields and the dynamically added Скидка field.
ValueTable row columns¶
Inside the Для Каждого Строка Из Таблица loop, typing Строка. triggers completion of the value table row's columns. The list offers the columns Артикул and Цена added earlier via Колонки.Добавить.
Predefined catalog items¶
After typing Справочники.ВидыКонтактнойИнформации., completion of the catalog manager's members is triggered. The list offers the catalog's predefined items alongside the manager's methods.
Fuzzy completion (substring, not just prefix)¶
In an .os file, after СтроковыеУтилиты. the substring Форм is typed — taken from the middle of the name, not a prefix. Fuzzy matching finds the real module method ВыполнитьФорматирование (matched letters highlighted), even though the name does not start with Форм.