Skip to content

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

← All features

Global functions by prefix

After typing Сообщ inside the procedure, prefix-based completion is triggered. The popup lists global functions starting with that string, including Сообщить.

01-global-functions

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.

02-method-via-dot

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.

03-new-object

Local variable completion

Two local variables КоличествоСтрок and СуммаПродаж are declared in the procedure, and typing Сумм triggers completion. The popup offers the local variable СуммаПродаж.

comp-04-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.

comp-05-module-method

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 Добавить.

comp-06-collection-members

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.

comp-07-common-module-members

Metadata collections (Catalogs.)

After typing Справочники., completion of the metadata object collection is triggered. The list offers the configuration's catalogs along with manager methods.

comp-08-metadata-collection

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.

comp-09-enum-values

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.

comp-10-os-new-library-class

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.

comp-11-os-module-members

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.

comp-12-os-use-required

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.

comp-13-struct-doc

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.

comp-14-struct-insert

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.

comp-15-struct-combo

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 Колонки.Добавить.

comp-16-valuetable-columns

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.

comp-17-predefined-items

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 Форм.

comp-18-fuzzy


Next: Go to definition →